✨ feat(37需求): 打开webview的页面
This commit is contained in:
@@ -268,8 +268,8 @@ export default class GameController extends Controller {
|
||||
|
||||
public async updateOtherLink() {
|
||||
const { ctx } = this;
|
||||
const { wxPublicAccountQrCode, bbsLink, customerLink } = ctx.request.body;
|
||||
ctx.body = await ctx.service.game.updateOtherLink(wxPublicAccountQrCode, bbsLink, customerLink);
|
||||
const { wxPublicAccountQrCode, bbsLink, bbsAndroidLink, customerLink } = ctx.request.body;
|
||||
ctx.body = await ctx.service.game.updateOtherLink(wxPublicAccountQrCode, bbsLink, bbsAndroidLink, customerLink);
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
@@ -437,11 +437,11 @@ export default class Game extends Service {
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
public async updateOtherLink(wxPublicAccountQrCode: string, bbsLink: string, customerLink: string ) {
|
||||
public async updateOtherLink(wxPublicAccountQrCode: string, bbsLink: string, bbsAndroidLink: string, customerLink: string ) {
|
||||
const { ctx } = this;
|
||||
let updateArr: { type: number, link?: string, qrCodeLink?: string }[] = [];
|
||||
let updateArr: { type: number, link?: string, qrCodeLink?: string, androidLink?: string }[] = [];
|
||||
if(wxPublicAccountQrCode) updateArr.push({ type: SNS_LINK_TYPE.WX_PUBLIC_ACCOUNT, qrCodeLink: wxPublicAccountQrCode });
|
||||
if(bbsLink) updateArr.push({ type: SNS_LINK_TYPE.BBS, link: bbsLink });
|
||||
if(bbsLink) updateArr.push({ type: SNS_LINK_TYPE.BBS, link: bbsLink, androidLink: bbsAndroidLink });
|
||||
if(customerLink) updateArr.push({ type: SNS_LINK_TYPE.CUSTOMER, link: customerLink });
|
||||
await LinkModel.updateLinks(updateArr, ctx.user?.uid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user