APPLE 3 лет назад
Родитель
Сommit
6c22de393e
2 измененных файлов с 1 добавлено и 2 удалено
  1. 1 1
      app/Http/Controllers/Api/v1/NoticeController.php
  2. 0 1
      app/Models/NoticeModel.php

+ 1 - 1
app/Http/Controllers/Api/v1/NoticeController.php

@@ -21,7 +21,7 @@ class NoticeController extends webApp
     public function info()
     {
         $id = request()->post('id', 0);
-        $info = NoticeModel::getInfo($id);
+        $info = $this->model->getInfo($id);
         return message(1010, true, $info);
     }
 

+ 0 - 1
app/Models/NoticeModel.php

@@ -33,7 +33,6 @@ class NoticeModel extends BaseModel
     public function getInfo($id)
     {
         $info = parent::getInfo($id); // TODO: Change the autogenerated stub
-
         return $info;
     }
 }