modified 区别简易认证和复杂认证

This commit is contained in:
zhaoxiang 2020-03-24 23:35:40 +08:00
parent 315e2f8304
commit 962c6b306c

View File

@ -79,14 +79,14 @@ class ApiAuth {
* @author zhaoxiang <zhaoxiang051405@gmail.com>
*/
private function doEasyCheck($accessToken) {
$appInfo = cache('AccessToken:' . $accessToken);
$appInfo = cache('AccessToken:Easy:' . $accessToken);
if (!$appInfo) {
$appInfo = AdminApp::get(['app_secret' => $accessToken]);
if (!$appInfo) {
return false;
} else {
$appInfo = $appInfo->toArray();
cache('AccessToken:' . $accessToken, $appInfo);
cache('AccessToken:Easy:' . $accessToken, $appInfo);
}
}