作者 郭鑫

订单修改

@@ -119,11 +119,11 @@ class OrderController extends CommonController @@ -119,11 +119,11 @@ class OrderController extends CommonController
119 $user_need_model = new UserNeedModel(); 119 $user_need_model = new UserNeedModel();
120 $agency_model = new AgencyModel(); 120 $agency_model = new AgencyModel();
121 if($orderInfo['type'] == 1) { 121 if($orderInfo['type'] == 1) {
122 - $info = $user_need_model->where(['id'=>$orderInfo['need_id'],'user_id'=>$user['id']])->find(); 122 + $info = $user_need_model->where(['id'=>$orderInfo['need_id']])->find();
123 $sort = '需求保证金支付'; 123 $sort = '需求保证金支付';
124 } 124 }
125 if($orderInfo['type'] == 2) { 125 if($orderInfo['type'] == 2) {
126 - $info = $agency_model->where(['id'=>$orderInfo['need_id'],'agency_id'=>$user['id']])->find(); 126 + $info = $agency_model->where(['id'=>$orderInfo['need_id']])->find();
127 $need = $user_need_model->where(['id'=>$info['need_id']])->find(); 127 $need = $user_need_model->where(['id'=>$info['need_id']])->find();
128 if($need['status'] != 3) { 128 if($need['status'] != 3) {
129 $this->apiResponse(0,'该需求当前状态无法进行报价'); 129 $this->apiResponse(0,'该需求当前状态无法进行报价');
@@ -131,7 +131,7 @@ class OrderController extends CommonController @@ -131,7 +131,7 @@ class OrderController extends CommonController
131 $sort = '中介报价保证金支付'; 131 $sort = '中介报价保证金支付';
132 } 132 }
133 if($orderInfo['type'] == 3) { 133 if($orderInfo['type'] == 3) {
134 - $info = $user_need_model->where(['id'=>$orderInfo['need_id'],'user_id'=>$user['id']])->find(); 134 + $info = $user_need_model->where(['id'=>$orderInfo['need_id']])->find();
135 $sort = '透视卡支付'; 135 $sort = '透视卡支付';
136 } 136 }
137 if(($orderInfo['type'] == 1 && $info['status'] == 1) || 137 if(($orderInfo['type'] == 1 && $info['status'] == 1) ||