Commit 4f117690 authored by 李尚科's avatar 李尚科

devince init fix

parent 1772a1b6
Pipeline #8954 passed with stage
in 15 seconds
......@@ -170,7 +170,7 @@ module.exports = () => {
const channel_alias = ctx.cookies.get('channel_alias', { signed: false });
let app_channel_info = await ctx.blockModel.AppChannel.one({ where: { alias: channel_alias } });//
if (!app_channel_info || !app_channel_info.app_id || !app_channel_info.channel_id) {
app_channel_info = await ctx.blockModel.AppChannel.one({ where: { alias: 'n_1_2' } });//如果配置的渠道未渠道信息,使用默认的渠道,以防出错
app_channel_info = await ctx.blockModel.AppChannel.one({ where: { alias: 'n_1_18100_appstore' } });//如果配置的渠道未渠道信息,使用默认的渠道,以防出错
}
const app_id = app_channel_info.app_id;
const channel_id = app_channel_info.channel_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment