Skip to content

Commit

Permalink
Merge pull request #62 from uutan/master
Browse files Browse the repository at this point in the history
商户端相关
  • Loading branch information
jianyan74 authored Feb 8, 2020
2 parents 79130d2 + d4bf041 commit cc77d98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/Wechat/common/config/merchant.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@
'title' => '获取全部粉丝',
'name' => 'fans/sync-all-openid',
],
[
'title' => '同步全部粉丝',
'name' => 'fans/get-all-fans',
],
[
'title' => '同步',
'name' => 'fans/sync',
Expand Down
3 changes: 3 additions & 0 deletions common/helpers/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public static function verify(string $route, $defaultAuth = [])
if (in_array('/*', $auth) || in_array($route, $auth)) {
return true;
}
if( in_array(Url::to([$route]), $auth) ) {
return true;
}

return self::multistageCheck($route, $auth);
}
Expand Down

0 comments on commit cc77d98

Please sign in to comment.