diff --git a/gm-server/app/controller/upload.ts b/gm-server/app/controller/upload.ts index 7f315f01e..5d011b8f1 100644 --- a/gm-server/app/controller/upload.ts +++ b/gm-server/app/controller/upload.ts @@ -293,7 +293,7 @@ public async uploadQrCode() { let filenames = part.filename.split('.'); ext = filenames[filenames.length - 1]; - if(type == 'popNotice'|| type == 'loginPage' || type == 'loadingPage') { + if(type == 'popNotice'|| type == 'loginPage' || type == 'loadingPage' || type == 'icon') { writePath = getLocalImgUrl(this.app.config.realEnv, type); fileName = `${moment().valueOf()}.${ext}`; remoteUrl = getRemoteImgUrl(this.app.config.realEnv, fileName, type); diff --git a/shared/domain/activityField/webviewField.ts b/shared/domain/activityField/webviewField.ts index 82fc698b7..d3802b8c9 100644 --- a/shared/domain/activityField/webviewField.ts +++ b/shared/domain/activityField/webviewField.ts @@ -4,6 +4,7 @@ import { ActivityBase } from "./activityField"; interface WebViewDataInDb { iosUrl: string; androidUrl: string; + iconUrl: string; } /** @@ -12,6 +13,7 @@ interface WebViewDataInDb { export class WebViewData extends ActivityBase { iosUrl: string; androidUrl: string; + iconUrl: string; constructor(activityData: ActivityModelType, createTime: number, serverTime: number) { super(activityData, createTime, serverTime) @@ -22,6 +24,7 @@ interface WebViewDataInDb { let dataObj: WebViewDataInDb = JSON.parse(data); this.iosUrl = dataObj.iosUrl; this.androidUrl = dataObj.androidUrl; + this.iconUrl = dataObj.iconUrl; } public getShowResult() { @@ -29,6 +32,7 @@ interface WebViewDataInDb { ...this.getBaseKeys(), iosUrl: this.iosUrl, androidUrl: this.androidUrl, + iconUrl: this.iconUrl, } } } \ No newline at end of file