WIN-2308041133\Administrator 1 năm trước cách đây
mục cha
commit
a6e10b505a

+ 6 - 1
application/api/controller/Lave.php

@@ -152,7 +152,7 @@ class Lave extends Api
         $where = UtilService::postMore(
         $where = UtilService::postMore(
             [
             [
                 ['cid', $this->cid],
                 ['cid', $this->cid],
-                ['user_id', $this->auth->getUserinfo()['id']],
+//                ['user_id', $this->auth->getUserinfo()['id']],
 //                ['user_id', 0],
 //                ['user_id', 0],
                 ['order_name', ''],
                 ['order_name', ''],
 //                ['category_id', 0],
 //                ['category_id', 0],
@@ -170,6 +170,11 @@ class Lave extends Api
                 ['from', 'weixin'],
                 ['from', 'weixin'],
             ], $request
             ], $request
         );
         );
+        try {
+            $where['user_id']=$this->auth->getUserinfo()['id'];
+        } catch (\Exception $e) {
+            $this->error('请登录后操作');
+        }
         $where1 = $where;
         $where1 = $where;
         unset($where1['from']);
         unset($where1['from']);
         $where1['order_id'] = LaveMonthModel::getNewOrderId();
         $where1['order_id'] = LaveMonthModel::getNewOrderId();