Skip to content

Commit cc77d98

Browse files
authored
Merge pull request #62 from uutan/master
商户端相关
2 parents 79130d2 + d4bf041 commit cc77d98

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

addons/Wechat/common/config/merchant.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@
159159
'title' => '获取全部粉丝',
160160
'name' => 'fans/sync-all-openid',
161161
],
162+
[
163+
'title' => '同步全部粉丝',
164+
'name' => 'fans/get-all-fans',
165+
],
162166
[
163167
'title' => '同步',
164168
'name' => 'fans/sync',

common/helpers/Auth.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public static function verify(string $route, $defaultAuth = [])
3131
if (in_array('/*', $auth) || in_array($route, $auth)) {
3232
return true;
3333
}
34+
if( in_array(Url::to([$route]), $auth) ) {
35+
return true;
36+
}
3437

3538
return self::multistageCheck($route, $auth);
3639
}

0 commit comments

Comments
 (0)