Commit 43701235 authored by 任国军's avatar 任国军

fix wechat classModel bug

parent 661df675
Pipeline #22652 passed with stage
in 13 seconds
......@@ -64,7 +64,7 @@ class WechatService extends Service {
return false;
}
const id = data.Content.replace('在线课程编号:', '');
const classInfo = await ctx.classModel.V5.CourseOnlineClass.findOne({ where: { id } });
const classInfo = await ctx.classModel.V5.CourseV5Class.findOne({ where: { id } });
const content = ctx.isEmpty(classInfo) || ctx.isEmpty(classInfo.channel) ? '' : classInfo.channel;
const token = await this.getAccessToken();
const url = 'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=' + token;
......
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