Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有一个地方变量名对不上 #380

Closed
zhengmin4516 opened this issue Apr 9, 2016 · 0 comments
Closed

有一个地方变量名对不上 #380

zhengmin4516 opened this issue Apr 9, 2016 · 0 comments

Comments

@zhengmin4516
Copy link

我用的环境

PHP 版本:5.6.15
overtrue/wechat 版本:3.0

问题及现象

生成共享收货地址

https://easywechat.org/zh-cn/docs/payment.html#u751F_u6210_u5171_u4EAB_u6536_u8D27_u5730_u5740_JS__u914D_u7F6E

use EasyWeChat\Support\Url as UrlHelper;

if (empty($_GET['code'])) {
    $currentUrl = UrlHelper::current(); 
    $response = $app->oauth->scopes(['snsapi_base'])->redirect($currentUrl);

    return $response; // or echo $response;

}
$oauthUser = $app->oauth->user(); //这里的变量名叫 $oauthUser 
$token = $user->getAccessToken(); // 这里却使用 $user
$configForPickAddress = $payment->configForShareAddress($token);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant