WIN-2308041133\Administrator 1 tahun lalu
induk
melakukan
a6e10b505a
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. 6 1
      application/api/controller/Lave.php

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

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