소스 검색

出售求购

afa 7 달 전
부모
커밋
9dcac9fc2e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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('订单已完成');
       
         // 启动事务