mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-22 06:49:15 +08:00
Update Wxapp.php
This commit is contained in:
parent
98402db0d5
commit
ed6bdfe12b
@ -87,7 +87,6 @@ class Wxapp extends Controller
|
||||
[, , $input['session_key']] = $this->_getSessionKey($input['code']);
|
||||
}
|
||||
$result = Crypt::instance($this->config)->decode($input['iv'], $input['session_key'], $input['encrypted']);
|
||||
p($result);
|
||||
if (is_array($result) && isset($result['openId']) && isset($result['avatarUrl']) && isset($result['nickName'])) {
|
||||
$sex = ['未知', '男', '女'][$result['gender']] ?? '未知';
|
||||
$map = empty($result['unionId']) ? [$this->field => $result['openId']] : ['unionid' => $result['unionId']];
|
||||
|
Loading…
x
Reference in New Issue
Block a user