|
@@ -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,
|