|
@@ -982,12 +982,12 @@ class HomeController extends AbstractAction |
|
@@ -982,12 +982,12 @@ class HomeController extends AbstractAction |
982
|
|
982
|
|
983
|
$hasWxShare = strpos($this->server('HTTP_USER_AGENT', ''), 'MicroMessenger') !== false;
|
983
|
$hasWxShare = strpos($this->server('HTTP_USER_AGENT', ''), 'MicroMessenger') !== false;
|
984
|
if ($hasWxShare) {
|
984
|
if ($hasWxShare) {
|
985
|
- $openId = $this->getCookie('weixinOpenId' . $orderCode);
|
985
|
+ $openId = $this->getSession('weixinOpenId' . $orderCode);
|
986
|
if (empty($openId)) {
|
986
|
if (empty($openId)) {
|
987
|
$tools = new JsApiPay();
|
987
|
$tools = new JsApiPay();
|
988
|
$openId = $tools->GetOpenid();
|
988
|
$openId = $tools->GetOpenid();
|
989
|
if ($openId) {
|
989
|
if ($openId) {
|
990
|
- $this->setCookie('weixinOpenId' . $orderCode, $openId, 600);
|
990
|
+ $this->setSession('weixinOpenId' . $orderCode, $openId);
|
991
|
}
|
991
|
}
|
992
|
}
|
992
|
}
|
993
|
}
|
993
|
}
|
|
@@ -1050,7 +1050,7 @@ class HomeController extends AbstractAction |
|
@@ -1050,7 +1050,7 @@ class HomeController extends AbstractAction |
1050
|
}
|
1050
|
}
|
1051
|
|
1051
|
|
1052
|
$totalFee = strval($orderDetail['data']['payment_amount'] * 100);
|
1052
|
$totalFee = strval($orderDetail['data']['payment_amount'] * 100);
|
1053
|
- $openId = $this->getCookie('weixinOpenId' . $orderCode);
|
1053
|
+ $openId = $this->getSession('weixinOpenId' . $orderCode);
|
1054
|
if (empty($openId)) {
|
1054
|
if (empty($openId)) {
|
1055
|
UdpLog::info('【微信支付下单】Session中的weixinOpenId校验','weixinOpenId为空');
|
1055
|
UdpLog::info('【微信支付下单】Session中的weixinOpenId校验','weixinOpenId为空');
|
1056
|
break;
|
1056
|
break;
|