| xqd
@@ -71,7 +71,7 @@ class ProductController extends Controller
|
|
|
{
|
|
|
$cat_id = $request->input('cat_id');
|
|
|
if (!$cat_id) {
|
|
|
- return response()->json(['message' => '参数不合法'], 400);
|
|
|
+ return response()->json(['message' => '参数不合法', 'code' => 1]);
|
|
|
}
|
|
|
$cat = AlbumCatModel::where([
|
|
|
['parent_id',$cat_id],['store_id',$this->getStoreId()]
|
| xqd
@@ -82,7 +82,10 @@ class ProductController extends Controller
|
|
|
'id' => 0
|
|
|
];
|
|
|
}
|
|
|
- return response()->json($cat);
|
|
|
+ return response()->json([
|
|
|
+ 'data' => $cat,
|
|
|
+ 'code' => 0
|
|
|
+ ]);
|
|
|
}
|
|
|
|
|
|
/**
|