|
@ -64,15 +64,20 @@ class WechatClient extends RedisModel {
|
|
|
*/
|
|
|
static sendMessage(targetUserId, targetUserName, message) {
|
|
|
if (message&&(message.content_type == CONTENT_TYPES.PlainText ||
|
|
|
message.content_type == CONTENT_TYPES.Image ||
|
|
|
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 ||
|
|
|
message.content_type == CONTENT_TYPES.VideoAnswerStatus
|
|
|
message.content_type == CONTENT_TYPES.Image ||
|
|
|
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 ||
|
|
|
message.content_type == CONTENT_TYPES.VideoAnswerStatus ||
|
|
|
message.content_type == CONTENT_TYPES.Screening ||
|
|
|
message.content_type == CONTENT_TYPES.PrescriptionReject ||
|
|
|
message.content_type == CONTENT_TYPES.PrescriptionSuggest ||
|
|
|
message.content_type == CONTENT_TYPES.ConsultSuggest ||
|
|
|
message.content_type == CONTENT_TYPES.PayMessage
|
|
|
)) {
|
|
|
let patientClient = clientCache.findById(targetUserId);
|
|
|
let pc_patientClient = clientCache.findById("pcpatient_"+targetUserId);
|