chenxiqiang 6 лет назад
Родитель
Сommit
5bcf8f1edf
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      manage-server/app/Http/Controllers/ProductController.php

+ 1
- 1
manage-server/app/Http/Controllers/ProductController.php Просмотреть файл

@@ -59,7 +59,7 @@ class ProductController extends Controller
59 59
     {
60 60
 
61 61
         $json = Product::paginate(20)->toJson();
62
-        $json["status"] = 0;
62
+        $json->status = 0;
63 63
         return $json;
64 64
     }
65 65
 }

Загрузка…
Отмена
Сохранить