Skip to content

Commit 1ceda75

Browse files
committed
Resolved overtrue#169
1 parent 34bcfc7 commit 1ceda75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Middleware/OAuthAuthenticate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(Application $wechat)
4949
public function handle($request, Closure $next, $scopes = null)
5050
{
5151
$isNewSession = false;
52-
$onlyRedirectInWeChatBrowser = config('wechat.oauth.only_wechat_browser', false);
52+
$onlyRedirectInWeChatBrowser = config('wechat.official_account.oauth.only_wechat_browser', false);
5353

5454
if ($onlyRedirectInWeChatBrowser && !$this->isWeChatBrowser($request)) {
5555
if (config('wechat.debug')) {
@@ -59,7 +59,7 @@ public function handle($request, Closure $next, $scopes = null)
5959
return $next($request);
6060
}
6161

62-
$scopes = $scopes ?: config('wechat.oauth.scopes', ['snsapi_base']);
62+
$scopes = $scopes ?: config('wechat.official_account.oauth.scopes', ['snsapi_base']);
6363

6464
if (is_string($scopes)) {
6565
$scopes = array_map('trim', explode(',', $scopes));

src/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
// 'sandbox' => env('WECHAT_PAYMENT_SANDBOX', false),
117117
// 'app_id' => env('WECHAT_PAYMENT_APPID', ''),
118118
// 'secret' => env('WECHAT_PAYMENT_SECRET', ''),
119-
// 'mch_id' => env('WECHAT_PAYMENT_MERCHANT_ID', 'your-mch-id'),
119+
// 'mch_id' => env('WECHAT_PAYMENT_MCh_ID', 'your-mch-id'),
120120
// 'key' => env('WECHAT_PAYMENT_KEY', 'key-for-signature'),
121121
// 'cert_path' => env('WECHAT_PAYMENT_CERT_PATH', 'path/to/cert/apiclient_cert.pem'), // XXX: 绝对路径!!!!
122122
// 'key_path' => env('WECHAT_PAYMENT_KEY_PATH', 'path/to/cert/apiclient_key.pem'), // XXX: 绝对路径!!!!

0 commit comments

Comments
 (0)