mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-07 22:29:44 +08:00
Update Wxapp.php
This commit is contained in:
parent
0eaf0be9b7
commit
65f9befa9c
@ -118,7 +118,7 @@ class Wxapp extends Controller
|
|||||||
}
|
}
|
||||||
$result = Crypt::instance($this->config)->session($code);
|
$result = Crypt::instance($this->config)->session($code);
|
||||||
if (isset($result['openid']) && isset($result['session_key'])) {
|
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']];
|
return [$result['openid'], $cache['unionid'] ?? '', $result['session_key']];
|
||||||
} elseif (isset($result['errmsg'])) {
|
} elseif (isset($result['errmsg'])) {
|
||||||
$this->error($result['errmsg']);
|
$this->error($result['errmsg']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user