|
@@ -172,15 +172,12 @@ class NoticeService extends CrudService {
|
|
|
if (res) {
|
|
|
const { content, notified } = res;
|
|
|
const useridList = notified.filter(f => f.status === '0').map(i => i.notifiedid);
|
|
|
- console.log(useridList);
|
|
|
const userList = await this.umodel.find({ uid: { $in: useridList } });
|
|
|
- console.log(userList);
|
|
|
for (const user of userList) {
|
|
|
if (!_.get(user, 'openid')) continue;
|
|
|
const openid = _.get(user, 'openid');
|
|
|
const detail = content;
|
|
|
const tourl = this.ctx.app.config.baseUrl + '/trainnotice/?userid=' + user.uid + '¬iceid=' + res.id;
|
|
|
- console.log(openid);
|
|
|
await this.toSendWithUrl('您有信息需要确认', openid, detail, tourl);
|
|
|
}
|
|
|
} else {
|