Browse Source

test

master
用户名 3 years ago
parent
commit
48e4a10ccf
  1. 6
      mobile/plugins/payment/wxpay.php

6
mobile/plugins/payment/wxpay.php

@ -112,7 +112,7 @@ class wxpay
{ {
$appid = 'wx79343915f99167e6'; $appid = 'wx79343915f99167e6';
$appsecret = 'f2f72c5e0ac29c2373bfaf22cf059c02'; $appsecret = 'f2f72c5e0ac29c2373bfaf22cf059c02';
$redirect_uri = 'https://shop.heavenk.com/mobile/plugins/payment/wxpay.php?code=CODE&state=STATE'; // 回调URL $redirect_uri = 'https://shop.heavenk.com/mobile/plugins/payment/wxpay.php'; // 回调URL
// 构造授权链接 // 构造授权链接
$auth_url = 'https://open.weixin.qq.com/connect/oauth2/authorize' $auth_url = 'https://open.weixin.qq.com/connect/oauth2/authorize'
@ -187,8 +187,8 @@ class wxpay
// $_SESSION['openid'] = 'sdf4asgdf2ag1'; // $_SESSION['openid'] = 'sdf4asgdf2ag1';
// return false; // return false;
$openid = $this->get_openid(); // $openid = $this->get_openid();
$_SESSION['openid'] = $openid; // $_SESSION['openid'] = $openid;
} }
// 设置必填参数 // 设置必填参数

Loading…
Cancel
Save