...
|
...
|
@@ -121,7 +121,11 @@ class User extends Api |
|
|
{
|
|
|
$post = $this->request->post();
|
|
|
empty($post['code']) && $this->error('缺少必需参数');
|
|
|
$decryptSession = Wechat::miniProgram()->auth->session($post['code']);
|
|
|
try{
|
|
|
$decryptSession = Wechat::miniProgram()->auth->session($post['code']);
|
|
|
}catch (Exception $e){
|
|
|
$this->error($e->getMessage());
|
|
|
}
|
|
|
$this->success('获取session_key', $decryptSession);
|
|
|
}
|
|
|
|
...
|
...
|
|