|
@@ -170,11 +170,10 @@ class Lave extends Api
|
|
|
['from', 'weixin'],
|
|
['from', 'weixin'],
|
|
|
], $request
|
|
], $request
|
|
|
);
|
|
);
|
|
|
- try {
|
|
|
|
|
- $where['user_id']=$this->auth->getUserinfo()['id'];
|
|
|
|
|
- } catch (\Exception $e) {
|
|
|
|
|
- $this->error('请登录后操作');
|
|
|
|
|
|
|
+ if (!$this->auth->isLogin()) {
|
|
|
|
|
+ $this->error(__('Please login first'), null, 401);
|
|
|
}
|
|
}
|
|
|
|
|
+ $where['user_id']=$this->auth->getUserinfo()['id'];
|
|
|
$where1 = $where;
|
|
$where1 = $where;
|
|
|
unset($where1['from']);
|
|
unset($where1['from']);
|
|
|
$where1['order_id'] = LaveMonthModel::getNewOrderId();
|
|
$where1['order_id'] = LaveMonthModel::getNewOrderId();
|