...
|
...
|
@@ -2,9 +2,9 @@ |
|
|
|
|
|
use Action\WebAction;
|
|
|
use Shopping\PayModel;
|
|
|
use WebPlugin\Helpers;
|
|
|
use WebPlugin\Pay\PayFactory;
|
|
|
use WebPlugin\Pay\Rspparams;
|
|
|
use WebPlugin\Pay\weixin\PayNotifyCallBack;
|
|
|
|
|
|
/**
|
|
|
* 支付Notice
|
...
|
...
|
@@ -237,24 +237,34 @@ class NoticeController extends WebAction |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 微信扫码支付返回返回
|
|
|
* 微信扫码支付结果商户通知地址
|
|
|
*/
|
|
|
public function wechatqrcodereturnAction()
|
|
|
public function wechatqrcodenotifyAction()
|
|
|
{
|
|
|
//判断是否登录
|
|
|
$uid = $this->auditJumpLogin();
|
|
|
$notify = new PayNotifyCallBack();
|
|
|
$notify->handle(false);
|
|
|
}
|
|
|
|
|
|
do {
|
|
|
$orderCode = isset($_GET['order_code']) ? $_GET['order_code'] : 0;
|
|
|
if (empty($orderCode)) {
|
|
|
/**
|
|
|
* 微信扫码支付返回
|
|
|
*/
|
|
|
public function wechatqrcodereturnAction()
|
|
|
{
|
|
|
$dealResult = array(
|
|
|
'code' => 500,
|
|
|
'message' => '支付失败'
|
|
|
);
|
|
|
|
|
|
do {
|
|
|
$orderCode = isset($_GET['order_code']) ? $_GET['order_code'] : 0;
|
|
|
if (empty($orderCode)) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
$dealResult = PayModel::getPayDetail($uid, $orderCode);
|
|
|
$payment = PayModel::getPaymentById(21);
|
|
|
$payService = PayFactory::factory($payment);
|
|
|
$res = $payService->parseResponse(array('orderCode' => $orderCode));
|
|
|
$dealResult = $this->payResultProc($res, 21);
|
|
|
$dealResult['payData'] = array('payWay' => '微信扫码支付');
|
|
|
} while (false);
|
|
|
|
...
|
...
|
@@ -266,23 +276,11 @@ class NoticeController extends WebAction |
|
|
*/
|
|
|
public function unionpaywebreturnAction()
|
|
|
{
|
|
|
//判断是否登录
|
|
|
$uid = $this->auditJumpLogin();
|
|
|
|
|
|
do {
|
|
|
$orderCode = isset($_GET['order_code']) ? $_GET['order_code'] : 0;
|
|
|
if (empty($orderCode)) {
|
|
|
$dealResult = array(
|
|
|
'code' => 500,
|
|
|
'message' => '支付失败'
|
|
|
);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
$dealResult = PayModel::getPayDetail($uid, $orderCode);
|
|
|
$payment = PayModel::getPaymentById(25);
|
|
|
$payService = PayFactory::factory($payment);
|
|
|
$res = $payService->parseResponse($_REQUEST);
|
|
|
$dealResult = $this->payResultProc($res, 25);
|
|
|
$dealResult['payData'] = array('payWay' => '银联在线支付');
|
|
|
} while (false);
|
|
|
|
|
|
$this->commonShowResult($dealResult);
|
|
|
}
|
|
|
|
...
|
...
|
|