/** * 验证token */ protected function checkToken($tokenKey, $uin) { if (empty($tokenKey) || $uin != ActionHelper::CheckToken($tokenKey)) { echo '{"status": -97, "msg":"token验证错误!"}'; exit; } }