แก้ call api

This commit is contained in:
kittapath 2024-09-30 09:44:43 +07:00
parent 32b50c905c
commit ed537aa72f
3 changed files with 6 additions and 47 deletions

View file

@ -136,7 +136,7 @@ export class ProfileController extends Controller {
let ImgUrl: any;
if (profile?.avatar != null && profile?.avatarName != null) {
await new CallAPI()
.GetData2(req, `/salary/file/${profile?.avatar}/${profile?.avatarName}`)
.GetData(req, `/salary/file/${profile?.avatar}/${profile?.avatarName}`)
.then(async (x) => {
ImgUrl = x.downloadUrl;
})
@ -287,7 +287,7 @@ export class ProfileController extends Controller {
let ImgUrl: any;
if (profiles?.avatar != null && profiles?.avatarName != null) {
await new CallAPI()
.GetData2(req, `/salary/file/${profiles?.avatar}/${profiles?.avatarName}`)
.GetData(req, `/salary/file/${profiles?.avatar}/${profiles?.avatarName}`)
.then(async (x) => {
ImgUrl = x.downloadUrl;
})