...
|
...
|
@@ -123,7 +123,7 @@ class OrderController extends CommonController |
|
|
$sort = '需求保证金支付';
|
|
|
}
|
|
|
if($orderInfo['type'] == 2) {
|
|
|
$info = $agency_model->where(['id'=>$orderInfo['need_id'],'user_id'=>$user['id']])->find();
|
|
|
$info = $agency_model->where(['id'=>$orderInfo['need_id'],'agency_id'=>$user['id']])->find();
|
|
|
$need = $user_need_model->where(['id'=>$info['need_id'],'user_id'=>$user['id']])->find();
|
|
|
if($need['status'] != 3) {
|
|
|
$this->apiResponse(0,'该需求当前状态无法进行报价');
|
...
|
...
|
@@ -251,4 +251,39 @@ class OrderController extends CommonController |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @title 根据订单号查询订单状态,支付结果页面显示不同内容
|
|
|
* @description 接口说明
|
|
|
* @author 开发者
|
|
|
* @url /api/portal/Order/getOrderType
|
|
|
* @method POST
|
|
|
* @param name:token type:char require:1 default: other: desc:用户token
|
|
|
* @param name:order_sn type:char require:1 default: other: desc:订单编号
|
|
|
*
|
|
|
*/
|
|
|
public function getOrderType() {
|
|
|
if($this->request->isPost()) {
|
|
|
$data = $this->request->param();
|
|
|
$member_model = new MemberModel();
|
|
|
$user = $member_model->field(['id,money'])->where(['token'=>$data['token']])->find();
|
|
|
$order_sn = $data['order_sn'];
|
|
|
$order_model = new OrderModel();
|
|
|
$type = $order_model->where(['order_sn'=>$order_sn,'user_id'=>$user['id'],'status'=>2])->value('type');
|
|
|
if(empty($type)) {
|
|
|
$this->apiResponse(0,'订单未支付');
|
|
|
}
|
|
|
$name = '';
|
|
|
if($type == 1) {
|
|
|
$name = '需求押金缴纳成功';
|
|
|
}
|
|
|
if($type == 2) {
|
|
|
$name = '中介押金缴纳成功';
|
|
|
}
|
|
|
if($type == 3) {
|
|
|
$name = '透视卡支付成功';
|
|
|
}
|
|
|
$this->apiResponse(1,'成功', $name);
|
|
|
}
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|