Browse Source

出售求购

afa 7 months ago
parent
commit
9dcac9fc2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Market.php

+ 1 - 1
application/api/controller/Market.php

@@ -151,7 +151,7 @@ class Market extends Api
         if(!$validate->scene('sellbuying')->check($params)) $this->error($validate->getError());
         $buying = $productBuying::get($params['buying_id']);
         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('订单已完成');
       
         // 启动事务