黄宗昌 il y a 2 ans
Parent
commit
95ab643aa3
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      app/Http/Controllers/V1/ProductController.php

+ 1 - 3
app/Http/Controllers/V1/ProductController.php

xqd
@@ -376,9 +376,7 @@ class ProductController extends Controller
         $limit = $request->get('limit',10);
         $go = $request->get('go',6);
         $user_id = $request->get('user_id');
-        if(!empty($user_id)){
-            $user_id = $user_id;
-        }else{
+        if(empty($user_id)){
             $user_id = $this->userId;
         }
         $list = UserCollect::query()