shishuangxi

注销账号接口处理

... ... @@ -12,7 +12,7 @@ export class LogoutModel{
let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders();
return new Promise<string>((success, fail) => {
HttpRequest.post<ResponseDTO<string>>(HttpUrlUtils.accountLogoutUrl(), bean, headers).then((data: ResponseDTO<string>) => {
if (!data || !data.data) {
if (!data) {
fail("数据为空")
return
}
... ... @@ -20,7 +20,7 @@ export class LogoutModel{
fail(data.message)
return
}
success(data.data)
success(data.message)
}, (error: Error) => {
fail(error.message)
// Logger.debug("LoginViewModel:error ", error.toString())
... ...