public async Task <PortalTokenResp> CodeRegOrLogin([FromBody] PortalPasscodeReq req) { var stateRes = CheckLoginModelState(req); if (!stateRes.IsSuccess()) { return(new PortalTokenResp().WithResp(stateRes)); //stateRes.ConvertToResultInherit<PortalTokenResp>(); } return(await service.CodeRegOrLogin(req.name, req.code, req.type, req.is_from_bind)); }