mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 10:22:38 +08:00
微信小程序
This commit is contained in:
@ -113,7 +113,7 @@ class User extends Common
|
||||
*/
|
||||
public function WechatUserAuth()
|
||||
{
|
||||
$result = (new \base\Wechat('wx0a2012ebad94beff', 'd0e4e81180ea59b8fcc4299f6b05b362'))->GetAuthSessionKey(input('authcode'));
|
||||
$result = (new \base\Wechat(MyC('common_app_mini_weixin_appid'), MyC('common_app_mini_weixin_appsecret')))->GetAuthSessionKey(input('authcode'));
|
||||
if($result !== false)
|
||||
{
|
||||
return DataReturn('授权登录成功', 0, $result);
|
||||
@ -131,7 +131,7 @@ class User extends Common
|
||||
*/
|
||||
public function WechatUserInfo()
|
||||
{
|
||||
$result = (new \base\Wechat('wx0a2012ebad94beff', 'd0e4e81180ea59b8fcc4299f6b05b362'))->DecryptData(input('encrypted_data'), input('iv'), input('openid'));
|
||||
$result = (new \base\Wechat(MyC('common_app_mini_weixin_appid'), MyC('common_app_mini_weixin_appsecret')))->DecryptData(input('encrypted_data'), input('iv'), input('openid'));
|
||||
|
||||
if(is_array($result))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user