|
@@ -151,7 +151,7 @@ class Market extends Api
|
|
|
if(!$validate->scene('sellbuying')->check($params)) $this->error($validate->getError());
|
|
if(!$validate->scene('sellbuying')->check($params)) $this->error($validate->getError());
|
|
|
$buying = $productBuying::get($params['buying_id']);
|
|
$buying = $productBuying::get($params['buying_id']);
|
|
|
if(empty($buying)) $this->error('订单不存在');
|
|
if(empty($buying)) $this->error('订单不存在');
|
|
|
- if($buying->user_id!= $this->auth->id) $this->error('无权操作');
|
|
|
|
|
|
|
+ if($buying->user_id == $this->auth->id) $this->error('无权操作');
|
|
|
if($buying->status != ProductBuying::Normal) $this->error('订单已完成');
|
|
if($buying->status != ProductBuying::Normal) $this->error('订单已完成');
|
|
|
|
|
|
|
|
// 启动事务
|
|
// 启动事务
|