|
@ -103,6 +103,17 @@ class WechatClient extends RedisModel {
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
|
|
|
if(doctorClient){
|
|
|
log.warn("doctor is online, sending via web socket. User id: ", targetUserId);
|
|
|
WechatClient.sendViaWebSocket(doctorClient.socket, message);
|
|
|
}
|
|
|
|
|
|
if(pc_doctorClient){
|
|
|
log.warn("pc_doctor is online, sending via web socket. User id: ", targetUserId);
|
|
|
WechatClient.sendViaWebSocket(pc_doctorClient.socket, message);
|
|
|
}
|
|
|
|
|
|
log.info("User's wechat endpoint is not online, sending via wechat template message. User id: ", targetUserId);
|
|
|
var isSendWXTem = true;//是否发送微信模板
|
|
|
if(message.content_type == CONTENT_TYPES.PrescriptionBloodStatus||message.content_type == CONTENT_TYPES.PrescriptionFollowupContent){
|