Update Wxapp.php

This commit is contained in:
邹景立 2021-03-18 16:17:20 +08:00
parent 0eaf0be9b7
commit 65f9befa9c

View File

@ -118,7 +118,7 @@ class Wxapp extends Controller
}
$result = Crypt::instance($this->config)->session($code);
if (isset($result['openid']) && isset($result['session_key'])) {
$this->app->cache->set($code, $result, 3600);
$this->app->cache->set($code, $result, 60);
return [$result['openid'], $cache['unionid'] ?? '', $result['session_key']];
} elseif (isset($result['errmsg'])) {
$this->error($result['errmsg']);