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