qifengquan 1 year ago
parent
commit
213f57b4c2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/data/controller/api/auth/ShipEngineMaintenance.php

+ 3 - 0
app/data/controller/api/auth/ShipEngineMaintenance.php

@@ -173,6 +173,9 @@ class ShipEngineMaintenance extends Auth
             ->whereIn('status','1,2')
             ->where('id',$data['id'])
             ->count() ? : $this->error('订单不存在');
+        $userdata = DataUserRepair::mk()->where('id',$data['id'])->value('uuid');
+        if($user['id']==$userdata)$this->error('无法报价自己发的订单');
+
         $array = [
             'repair_id'=>$data['id'],
             'offer_id'=>$this->uuid,