作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

@@ -77,7 +77,7 @@ class LoginController extends HomeBaseController{ @@ -77,7 +77,7 @@ class LoginController extends HomeBaseController{
77 $response=cmf_curl_get($loginUrl); 77 $response=cmf_curl_get($loginUrl);
78 $response=json_decode($response,true); 78 $response=json_decode($response,true);
79 if (!empty($response['errcode'])) { 79 if (!empty($response['errcode'])) {
80 - $this->error('操作失败!'); 80 + $this->apiResponse(303,'获取session_key失败');
81 } 81 }
82 $openid = $response['openid']; 82 $openid = $response['openid'];
83 $sessionKey = $response['session_key']; 83 $sessionKey = $response['session_key'];