Showing
1 changed file
with
5 additions
and
3 deletions
| @@ -3,7 +3,7 @@ import MinePagePersonalFunctionsItem from '../viewmodel/MinePagePersonalFunction | @@ -3,7 +3,7 @@ import MinePagePersonalFunctionsItem from '../viewmodel/MinePagePersonalFunction | ||
| 3 | import MinePageCreatorFunctionsItem from '../viewmodel/MinePageCreatorFunctionsItem' | 3 | import MinePageCreatorFunctionsItem from '../viewmodel/MinePageCreatorFunctionsItem' |
| 4 | import MinePageMoreFunctionModel from '../viewmodel/MinePageMoreFunctionModel'; | 4 | import MinePageMoreFunctionModel from '../viewmodel/MinePageMoreFunctionModel'; |
| 5 | import HashMap from '@ohos.util.HashMap'; | 5 | import HashMap from '@ohos.util.HashMap'; |
| 6 | -import { HttpUrlUtils, ResponseDTO, WDHttp } from 'wdNetwork'; | 6 | +import { HttpBizUtil, HttpUrlUtils, ResponseDTO, WDHttp } from 'wdNetwork'; |
| 7 | import { MineAppointmentListItem } from '../viewmodel/MineAppointmentListItem'; | 7 | import { MineAppointmentListItem } from '../viewmodel/MineAppointmentListItem'; |
| 8 | import { Logger, ResourcesUtils, StringUtils } from 'wdKit'; | 8 | import { Logger, ResourcesUtils, StringUtils } from 'wdKit'; |
| 9 | import { MineFollowListDetailItem } from '../viewmodel/MineFollowListDetailItem'; | 9 | import { MineFollowListDetailItem } from '../viewmodel/MineFollowListDetailItem'; |
| @@ -371,7 +371,8 @@ class MinePageDatasModel{ | @@ -371,7 +371,8 @@ class MinePageDatasModel{ | ||
| 371 | fetchMineUserLevelData() { | 371 | fetchMineUserLevelData() { |
| 372 | let url = HttpUrlUtils.getMineUserLevelDataUrl() | 372 | let url = HttpUrlUtils.getMineUserLevelDataUrl() |
| 373 | let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders(); | 373 | let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders(); |
| 374 | - return WDHttp.get<ResponseDTO<MineUserLevelItem>>(url, headers) | 374 | + // return WDHttp.get<ResponseDTO<MineUserLevelItem>>(url, headers) |
| 375 | + return HttpBizUtil.get<MineUserLevelItem>(url, headers) | ||
| 375 | }; | 376 | }; |
| 376 | 377 | ||
| 377 | async getMineUserLevelDataLocal(context: Context): Promise<MineUserLevelItem> { | 378 | async getMineUserLevelDataLocal(context: Context): Promise<MineUserLevelItem> { |
| @@ -409,7 +410,8 @@ class MinePageDatasModel{ | @@ -409,7 +410,8 @@ class MinePageDatasModel{ | ||
| 409 | fetchMineUserDetailData() { | 410 | fetchMineUserDetailData() { |
| 410 | let url = HttpUrlUtils.getMineUserDetailDataUrl() | 411 | let url = HttpUrlUtils.getMineUserDetailDataUrl() |
| 411 | let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders(); | 412 | let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders(); |
| 412 | - return WDHttp.get<ResponseDTO<MineUserDetailItem>>(url, headers) | 413 | + // return WDHttp.get<ResponseDTO<MineUserDetailItem>>(url, headers) |
| 414 | + return HttpBizUtil.get<MineUserDetailItem>(url, headers) | ||
| 413 | }; | 415 | }; |
| 414 | 416 | ||
| 415 | async getMineUserDetailDataLocal(context: Context): Promise<MineUserDetailItem> { | 417 | async getMineUserDetailDataLocal(context: Context): Promise<MineUserDetailItem> { |
-
Please register or login to post a comment