Skip to content

Commit 962c6b3

Browse files
committed
modified 区别简易认证和复杂认证
1 parent 315e2f8 commit 962c6b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/http/middleware/ApiAuth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ public function handle($request, \Closure $next) {
7979
* @author zhaoxiang <[email protected]>
8080
*/
8181
private function doEasyCheck($accessToken) {
82-
$appInfo = cache('AccessToken:' . $accessToken);
82+
$appInfo = cache('AccessToken:Easy:' . $accessToken);
8383
if (!$appInfo) {
8484
$appInfo = AdminApp::get(['app_secret' => $accessToken]);
8585
if (!$appInfo) {
8686
return false;
8787
} else {
8888
$appInfo = $appInfo->toArray();
89-
cache('AccessToken:' . $accessToken, $appInfo);
89+
cache('AccessToken:Easy:' . $accessToken, $appInfo);
9090
}
9191
}
9292

0 commit comments

Comments
 (0)