Bladeren bron

Merge branch 'feature-1.2.6' of lyr/im.doctor into feature-1.2.6

linzhuo 8 jaren geleden
bovenliggende
commit
9418ded1f4
1 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen
  1. 5 3
      src/doctor/models/patient.js

+ 5 - 3
src/doctor/models/patient.js

@ -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"}
                }
            };