WIN-2308041133\Administrator 6 meses atrás
pai
commit
41b0dc9b6f

+ 2 - 1
application/admin/model/WechatPlanRecord.php

@@ -57,7 +57,8 @@ class WechatPlanRecord extends Model
         $xwhere = null;
         $order = "id desc";
         if (isset($where['id']) && $where['id'] > 0) $xwhere['id'] = $where['id'];
-//        if (isset($where['cid']) && $where['cid'] > 0) $xwhere['cid'] = $where['cid'];
+        if (isset($where['cid']) && $where['cid'] > 0) $xwhere['cid'] = $where['cid'];
+        if (isset($where['uid']) && $where['uid'] > 0) $xwhere['uid'] = $where['uid'];
 //        if (isset($where['category_id']) && $where['category_id'] > 0) $xwhere['category_id'] = $where['category_id'];
         $data = $model->where($xwhere)->where('is_signing',0)->order($order)->select();
         $count = $model->where($xwhere)->count();

+ 2 - 2
application/api/controller/Lave.php

@@ -443,8 +443,8 @@ class Lave extends Api
             [
                 ['id', 0],
 //                ['cid', 0],
-//                ['cid', $this->cid],
-//                ['user_id', $this->auth->getUserinfo()['id']],
+                ['cid', $this->cid],
+                ['user_id', $this->auth->getUserinfo()['id']],
 //                ['user_id', 0],
             ], $request
         );