|
|
@@ -21,7 +21,7 @@ import com.usoftchina.saas.exception.BizException;
|
|
|
import com.usoftchina.saas.exception.ExceptionCode;
|
|
|
import com.usoftchina.saas.page.PageDefault;
|
|
|
import com.usoftchina.saas.page.PageRequest;
|
|
|
-import com.usoftchina.saas.server.error.ServletErrorUtils;
|
|
|
+import com.usoftchina.saas.server.web.ServletUtils;
|
|
|
import com.usoftchina.saas.socket.api.SocketMessageApi;
|
|
|
import com.usoftchina.saas.utils.BeanMapper;
|
|
|
import com.usoftchina.saas.utils.CollectionUtils;
|
|
|
@@ -136,7 +136,7 @@ public class AuthController {
|
|
|
accountDTO = createAccountByCookieInfo(info);
|
|
|
} else {
|
|
|
logger.error(result.getMessage());
|
|
|
- ServletErrorUtils.writeJsonPMessage(response, callback, false);
|
|
|
+ ServletUtils.writeJsonPMessage(response, callback, false);
|
|
|
return;
|
|
|
}
|
|
|
} else {
|
|
|
@@ -147,7 +147,7 @@ public class AuthController {
|
|
|
Result updateResult = accountApi.update(BeanMapper.map(accountDTO, AccountUpdateDTO.class));
|
|
|
if (!updateResult.isSuccess()) {
|
|
|
logger.error(updateResult.getMessage());
|
|
|
- ServletErrorUtils.writeJsonPMessage(response, callback, false);
|
|
|
+ ServletUtils.writeJsonPMessage(response, callback, false);
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
@@ -170,7 +170,7 @@ public class AuthController {
|
|
|
socketMessageApi.sendToClient(clientId, "/sso/callback",
|
|
|
JsonUtils.toJsonString(new AuthDTO(tokenDTO, accountDTO)));
|
|
|
}
|
|
|
- ServletErrorUtils.writeJsonPMessage(response, callback, true);
|
|
|
+ ServletUtils.writeJsonPMessage(response, callback, true);
|
|
|
}
|
|
|
}
|
|
|
|