ServiceCommon = new ServiceCommon(); } /** * 登录 */ public function Login() { $result = $this->ServiceCommon->Login(); json2($result); } /** * 注销 * * 注销操作为将用户尚未过期的token加入所谓黑名单 * 每次注销触发主动扫描黑名单 将名单中过期的token删除 * 目的:实现用户注销后尚未过期的token无法继续使用 */ public function Logout() { $result = $this->ServiceCommon->Logout(); json2($result); } /** * 获取验证码 */ public function GetVeryfyCode() { $result = $this->ServiceCommon->GetVeryfyCode(); json2($result); } }