Skip to content

Commit 34d0631

Browse files
committed
模拟网页授权优化,使模拟数据结构与真实尽量一致
1 parent 677ba6f commit 34d0631

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ Route::group(['middleware' => ['web', 'wechat.oauth:snsapi_userinfo']], function
239239
// 以下字段为 scope 为 snsapi_userinfo 时需要
240240
"nickname" => "overtrue",
241241
"sex" =>"1",
242+
"language" =>"zh_CN",
242243
"province" =>"北京",
243244
"city" =>"北京",
244245
"country" =>"中国",

src/ServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ protected function setUpMockAuthUser()
102102
'nickname' => array_get($user, 'nickname'),
103103
'avatar' => array_get($user, 'headimgurl'),
104104
'email' => null,
105+
'original' => array_merge($user, [privilege => []]),
105106
]);
106107

107108
session(['wechat.oauth_user' => $user]);

0 commit comments

Comments
 (0)