Skip to content

Commit

Permalink
修正商户端权限认证相对路由补全;添加全部粉丝权限清单
Browse files Browse the repository at this point in the history
  • Loading branch information
uutanyang committed Feb 7, 2020
1 parent 5a9a5b0 commit d4bf041
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 d4bf041

Please sign in to comment.