WIN-2308041133\Administrator 2 周之前
父節點
當前提交
0f1a1c7687
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      application/admin/model/WechatPlan.php
  2. 1 0
      application/api/controller/Lave.php

+ 1 - 0
application/admin/model/WechatPlan.php

@@ -43,6 +43,7 @@ class WechatPlan 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'];
         $data = $model->where($xwhere)->order($order)->select();
 //        $count = $model->where($xwhere)->count();
         return $data;

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

@@ -370,6 +370,7 @@ class Lave extends Api
                 ['cid', $this->cid],
             ], $request
         );
+        @file_put_contents("quanju.txt", $where['cid']."-cid是多少\r\n", 8);
         if (!$where['id']) $this->error('参数错误');
         $this->success('获取成功', WechatPlan::read($where));
     }