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