diff --git a/addons/Wechat/common/config/merchant.php b/addons/Wechat/common/config/merchant.php index 4fa28ee75..f0239467c 100644 --- a/addons/Wechat/common/config/merchant.php +++ b/addons/Wechat/common/config/merchant.php @@ -159,6 +159,10 @@ 'title' => '获取全部粉丝', 'name' => 'fans/sync-all-openid', ], + [ + 'title' => '同步全部粉丝', + 'name' => 'fans/get-all-fans', + ], [ 'title' => '同步', 'name' => 'fans/sync', diff --git a/common/helpers/Auth.php b/common/helpers/Auth.php index 1a2f40484..247404a5a 100644 --- a/common/helpers/Auth.php +++ b/common/helpers/Auth.php @@ -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); }