|
@ -63,6 +63,7 @@ class WechatClient extends RedisModel {
|
|
|
message.content_type == CONTENT_TYPES.Audio||
|
|
|
message.content_type == CONTENT_TYPES.PrescriptionBloodStatus ||
|
|
|
message.content_type == CONTENT_TYPES.PrescriptionFollowupContent ||
|
|
|
message.content_type == CONTENT_TYPES.ReservationDoorCardInfo ||
|
|
|
message.content_type == CONTENT_TYPES.ChangeDoorCardInfo ||
|
|
|
message.content_type == CONTENT_TYPES.ChangeDoorDoctor ||
|
|
|
message.content_type == CONTENT_TYPES.ChangeDoorPackageItems)) {
|
|
@ -102,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){
|