...
|
...
|
@@ -40,7 +40,7 @@ class NoticeController extends WebAction |
|
|
$res = $this->getParseResponse($_GET, 2);
|
|
|
UdpLog::info("【支付宝同步】,function:alipayreturnAction,参数", array('pars' => $_GET, 'res' => $res));
|
|
|
$dealResult = $this->payResultProc($res, 2);
|
|
|
$dealResult['payData'] = array('payWay' => '支付宝');
|
|
|
$dealResult['payData'] = array('payWay' => '支付宝', 'payWayId' => 2);
|
|
|
$this->commonShowResult($dealResult);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -66,7 +66,7 @@ class NoticeController extends WebAction |
|
|
$res = $this->getParseResponse($_GET, 17);
|
|
|
UdpLog::info("【支付宝二维码支付同步】,function:alibarcodereturnAction,参数", array('pars' => $_GET, 'res' => $res));
|
|
|
$dealResult = $this->payResultProc($res, 17);
|
|
|
$dealResult['payData'] = array('payWay' => '支付宝');
|
|
|
$dealResult['payData'] = array('payWay' => '支付宝', 'payWayId' => 17);
|
|
|
$this->commonShowResult($dealResult);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -90,7 +90,7 @@ class NoticeController extends WebAction |
|
|
{
|
|
|
$res = $this->getParseResponse($_POST, 16);
|
|
|
$dealResult = $this->payResultProc($res, 16);
|
|
|
$dealResult['payData'] = array('payWay' => '通联支付');
|
|
|
$dealResult['payData'] = array('payWay' => '通联支付', 'payWayId' => 16);
|
|
|
$this->commonShowResult($dealResult);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -101,7 +101,7 @@ class NoticeController extends WebAction |
|
|
{
|
|
|
$res = $this->getParseResponse($_GET, 13);
|
|
|
$dealResult = $this->payResultProc($res, 13);
|
|
|
$dealResult['payData'] = array('payWay' => '支付宝');
|
|
|
$dealResult['payData'] = array('payWay' => '支付宝', 'payWayId' => 13);
|
|
|
$this->commonShowResult($dealResult);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -139,7 +139,7 @@ class NoticeController extends WebAction |
|
|
{
|
|
|
$res = $this->getParseResponse($_GET, 12);
|
|
|
$dealResult = $this->payResultProc($res, 12);
|
|
|
$dealResult['payData'] = array('payWay' => '银行卡');
|
|
|
$dealResult['payData'] = array('payWay' => '银行卡', 'payWayId' => 12);
|
|
|
$this->commonShowResult($dealResult);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -150,7 +150,7 @@ class NoticeController extends WebAction |
|
|
{
|
|
|
$res = $this->getParseResponse($_POST, 4);
|
|
|
$dealResult = $this->payResultProc($res, 4);
|
|
|
$dealResult['payData'] = array('payWay' => '网银在线');
|
|
|
$dealResult['payData'] = array('payWay' => '网银在线', 'payWayId' => 4);
|
|
|
$this->commonShowResult($dealResult);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -176,7 +176,7 @@ class NoticeController extends WebAction |
|
|
{
|
|
|
$res = $this->getParseResponse($_GET, 1);
|
|
|
$dealResult = $this->payResultProc($res, 1);
|
|
|
$dealResult['payData'] = array('payWay' => '财付通');
|
|
|
$dealResult['payData'] = array('payWay' => '财付通', 'payWayId' => 1);
|
|
|
$this->commonShowResult($dealResult);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -188,7 +188,7 @@ class NoticeController extends WebAction |
|
|
{
|
|
|
$res = $this->getParseResponse($_POST, 11);
|
|
|
$dealResult = $this->payResultProc($res, 11);
|
|
|
$dealResult['payData'] = array('payWay' => '盛付通');
|
|
|
$dealResult['payData'] = array('payWay' => '盛付通', 'payWayId' => 11);
|
|
|
$this->commonShowResult($dealResult);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -255,7 +255,7 @@ class NoticeController extends WebAction |
|
|
$res = $payService->parseResponse(array('orderCode' => $orderCode));
|
|
|
UdpLog::info("【微信扫码支付返回】,function:wechatqrcodereturnAction,参数", array('pars' => $_GET, 'res' => $res));
|
|
|
$dealResult = $this->payResultProc($res, 21);
|
|
|
$dealResult['payData'] = array('payWay' => '微信扫码支付');
|
|
|
$dealResult['payData'] = array('payWay' => '微信扫码支付', 'payWayId' => 21);
|
|
|
} while (false);
|
|
|
|
|
|
$this->commonShowResult($dealResult);
|
...
|
...
|
@@ -269,7 +269,7 @@ class NoticeController extends WebAction |
|
|
UdpLog::info("【银联web支付同步返回】,function:unionpaywebreturn,json参数", json_encode($_REQUEST));
|
|
|
$res = $this->getParseResponse($_REQUEST, 25);
|
|
|
$dealResult = $this->payResultProc($res, 25);
|
|
|
$dealResult['payData'] = array('payWay' => '银联在线支付');
|
|
|
$dealResult['payData'] = array('payWay' => '银联在线支付', 'payWayId' => 25);
|
|
|
$this->commonShowResult($dealResult);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -334,19 +334,43 @@ class NoticeController extends WebAction |
|
|
{
|
|
|
$code = $dealResult['code'];
|
|
|
$view = 'wechatqrcodereturn';
|
|
|
$sknArr = array();
|
|
|
$skuArr = array();
|
|
|
|
|
|
if ($dealResult['data']['items']) {
|
|
|
foreach($dealResult['data']['items'] as $val) {
|
|
|
$sknArr[] = $val['product_skn'];
|
|
|
$skuArr[] = $val['product_sku'];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 埋点数据
|
|
|
$point = array(
|
|
|
'orderCode' => $dealResult['data']['orderNum'],
|
|
|
'payResult' => 2, // 1 支付成功/2 支付失败
|
|
|
'amount' => $dealResult['data']['pay'],
|
|
|
'payStyle' => $dealResult['payData']['payWayId'],
|
|
|
'proSkn' => implode($sknArr, ','),
|
|
|
'proSku' => implode($skuArr, ','),
|
|
|
);
|
|
|
|
|
|
$data = array(
|
|
|
'headerData' => true,
|
|
|
'payData' => $dealResult['payData']
|
|
|
'payData' => $dealResult['payData'],
|
|
|
'point' => $point
|
|
|
);
|
|
|
|
|
|
if ($code == 200) {
|
|
|
$view = 'index';
|
|
|
$point['payResult'] = 1;// 支付结果
|
|
|
|
|
|
$data = array(
|
|
|
'payNotice' => $dealResult['data'],
|
|
|
'criteo' => array(// 统计代码有关数据
|
|
|
'orderNum' => $dealResult['data']['orderNum'],
|
|
|
'items' => $dealResult['data']['items']
|
|
|
)
|
|
|
),
|
|
|
'point' => $point
|
|
|
);
|
|
|
}
|
|
|
|
...
|
...
|
|