作者 郭鑫

支付调试上传

... ... @@ -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
... ...
... ... @@ -1276,3 +1276,7 @@
)
2018-05-24 16:35:56 {"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"订单支付","total_amount":"0.01","out_trade_no":"2018052499495650"}
2018-05-24 16:35:56 response: '<form id=\'alipaysubmit\' name=\'alipaysubmit\' action=\'https://openapi.alipay.com/gateway.do?charset=UTF-8\' method=\'POST\'><input type=\'hidden\' name=\'biz_content\' value=\'{"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"订单支付","total_amount":"0.01","out_trade_no":"2018052499495650"}\'/><input type=\'hidden\' name=\'app_id\' value=\'2018042760054328\'/><input type=\'hidden\' name=\'version\' value=\'1.0\'/><input type=\'hidden\' name=\'format\' value=\'json\'/><input type=\'hidden\' name=\'sign_type\' value=\'RSA2\'/><input type=\'hidden\' name=\'method\' value=\'alipay.trade.page.pay\'/><input type=\'hidden\' name=\'timestamp\' value=\'2018-05-24 16:35:56\'/><input type=\'hidden\' name=\'alipay_sdk\' value=\'alipay-sdk-php-20161101\'/><input type=\'hidden\' name=\'notify_url\' value=\'http://ccimc.com/Portal/Alipay/notify_url\'/><input type=\'hidden\' name=\'return_url\' value=\'http://ccimc.com/Portal/Alipay/return_url\'/><input type=\'hidden\' name=\'charset\' value=\'UTF-8\'/><input type=\'hidden\' name=\'sign\' value=\'dlyGnXs8cdkt5tBaURTvesYegYlxyw7wyFBMmjf7VddcGg9/kIz8OXggr4t6j+X/kVhTOmHwqdDfVZ1gvbSyG7PKRLc7NpOoza9NTDDX3TfwRKPTsHjfx5LkvZ9mSNaIbKLRH+CSJRfu2vsYeH+uG4h+6JwbhwxE0lhetoeA/UoOgh7EMzQKkhrqMVKYBpVN5flBYccWm79Nn89p6OfvBlr50RSeGfbmBHWUjAMGc+nE+TySXVmi9MRkNucz404eBgoZsstBNiEvDMWUsVQPvm9zOpsYIvz3xywQb1ztdrgM98YfSpk8aauGIOb/QG6NMdqH/Oi1R76eAfzTZx0a3w==\'/><input type=\'submit\' value=\'ok\' style=\'display:none;\'\'></form><script>document.forms[\'alipaysubmit\'].submit();</script>'
2018-07-24 16:19:20 {"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072199481015"}
2018-07-24 16:19:20 response: '<form id=\'alipaysubmit\' name=\'alipaysubmit\' action=\'https://openapi.alipay.com/gateway.do?charset=UTF-8\' method=\'POST\'><input type=\'hidden\' name=\'biz_content\' value=\'{"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072199481015"}\'/><input type=\'hidden\' name=\'app_id\' value=\'2018062560425105\'/><input type=\'hidden\' name=\'version\' value=\'1.0\'/><input type=\'hidden\' name=\'format\' value=\'json\'/><input type=\'hidden\' name=\'sign_type\' value=\'RSA2\'/><input type=\'hidden\' name=\'method\' value=\'alipay.trade.page.pay\'/><input type=\'hidden\' name=\'timestamp\' value=\'2018-07-24 16:19:20\'/><input type=\'hidden\' name=\'alipay_sdk\' value=\'alipay-sdk-php-20161101\'/><input type=\'hidden\' name=\'notify_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/notify_url\'/><input type=\'hidden\' name=\'return_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/return_url\'/><input type=\'hidden\' name=\'charset\' value=\'UTF-8\'/><input type=\'hidden\' name=\'sign\' value=\'QNTf+UwxVvV/IHI5pXHBQgooMftGLNyVw+d2TlB+Njr91hFYX5/eiAcu9szghr6p74pf7PaM9qzU/3YK0cfwI4DHQ9n7cBweDbLit9PLpAnrn5ANxtb591e7E/kZkojcj4xPQN6lMgR/20wFdB55m1n5FYd+Ok3/F6G/CDNxkdnTKHLsmLofD4D1qT9pnN+Nrs1VPByn124InkkVrUk7RS9ThjDDy3QFpKOUFPN8w7hmeDSC5dZccJ31vRZzO5pVU/Ygy9kkgTP00zWNqW4c9j3DLRK8ttNmGgRrcomqSd1OgsKmLVBC6pYyHxwfZ0EK3iIw+ztuXwao0ZonMxwc9g==\'/><input type=\'submit\' value=\'ok\' style=\'display:none;\'\'></form><script>document.forms[\'alipaysubmit\'].submit();</script>'
2018-07-24 16:19:28 {"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072199481015"}
2018-07-24 16:19:28 response: '<form id=\'alipaysubmit\' name=\'alipaysubmit\' action=\'https://openapi.alipay.com/gateway.do?charset=UTF-8\' method=\'POST\'><input type=\'hidden\' name=\'biz_content\' value=\'{"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072199481015"}\'/><input type=\'hidden\' name=\'app_id\' value=\'2018062560425105\'/><input type=\'hidden\' name=\'version\' value=\'1.0\'/><input type=\'hidden\' name=\'format\' value=\'json\'/><input type=\'hidden\' name=\'sign_type\' value=\'RSA2\'/><input type=\'hidden\' name=\'method\' value=\'alipay.trade.page.pay\'/><input type=\'hidden\' name=\'timestamp\' value=\'2018-07-24 16:19:28\'/><input type=\'hidden\' name=\'alipay_sdk\' value=\'alipay-sdk-php-20161101\'/><input type=\'hidden\' name=\'notify_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/notify_url\'/><input type=\'hidden\' name=\'return_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/return_url\'/><input type=\'hidden\' name=\'charset\' value=\'UTF-8\'/><input type=\'hidden\' name=\'sign\' value=\'wM7VQXlL8ov5HFZ4BLFkc0uZ3V9wFl1+zuHqa3r3tTCwi7BRMDc6qv1NuA7mCz+hH/5krUrdcxo1Sx+U8WTIFctFYUZymo73u7MwxaqavqEF9h1+eZpQ8hMUCgAont3glbYQwZZE7hbQObnQFxtr1Ox56mbF7SyyOQ6srtoptIQo3r4XOrucJSxmxazqEBZSjP3Wb7YUPr7zFUIF3hgRxhhkEDB7+XD8kK1w2i/5LSKdR8TkEAf6jN3RL05rR49vd11OSS3lPYreANgSvtRaXGiyOye7R1hXN/oZgYws9jFw9Eu4YyNw/aqRkI+p11LUZAPhWUoRB3/5ehNJFh6LKg==\'/><input type=\'submit\' value=\'ok\' style=\'display:none;\'\'></form><script>document.forms[\'alipaysubmit\'].submit();</script>'
... ...