fixed product resource
This commit is contained in:
parent
66eeca3b7f
commit
63181c5acd
|
|
@ -29,6 +29,8 @@ class ProductController extends Controller
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($request->expectsJson()) {
|
if ($request->expectsJson()) {
|
||||||
|
return ProductResource::collection($product);
|
||||||
|
return json_success('成功', ProductResource::collection($product));
|
||||||
return json_success('成功', $product);
|
return json_success('成功', $product);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue