|
@ -163,6 +163,8 @@ class Patient extends BaseModel {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var symptoms = consult.symptoms && consult.symptoms.length > 50 ? (consult.symptoms.substr(0, 50) + "...") : consult.symptoms;
|
|
|
var reply = replyContent && replyContent.length > 50 ? (replyContent.substr(0, 50) + "...") : replyContent;
|
|
|
|
|
|
// 模板消息数据
|
|
|
var msg = {
|
|
@ -171,10 +173,10 @@ class Patient extends BaseModel {
|
|
|
url: config.wechatConfig.baseUrl + "/wx/html/yszx/html/consulting-doctor.html?openid=" + openid +
|
|
|
"&consult=" + consult.consult + "&toUser=" + message.to,
|
|
|
data: {
|
|
|
first: {value: "您的健康咨询有新的回复", color: "#000000"}
|
|
|
first: {value: consult.name + ",您好!\n您的健康咨询有新的回复", color: "#000000"}
|
|
|
, remark: {value: "", color: "#000000"}
|
|
|
, keyword1: {value: consult.symptoms, color: "#000000"}
|
|
|
, keyword2: {value: replyContent, color: "#000000"}
|
|
|
, keyword1: {value: symptoms, color: "#000000"}
|
|
|
, keyword2: {value: reply, color: "#000000"}
|
|
|
, keyword3: {value: name, color: "#000000"}
|
|
|
}
|
|
|
};
|