作者 郭鑫

订单修改

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