作者 何书鹏
1 个管道 的构建 通过 耗费 5 秒

测试

... ... @@ -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);
}
... ...