@@ -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;
@@ -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));
}