Bladeren bron

Merge branch 'feature-refactor' of zd_123/im.doctor into feature-refactor

zd_123 6 jaren geleden
bovenliggende
commit
496c1d6fff
3 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 1 0
      readme.md
  2. 1 0
      src/server/include/commons.js
  3. 1 1
      src/server/repository/mysql/participant.repo.js

+ 1 - 0
readme.md

@ -179,6 +179,7 @@ REST API遵循REST最佳实践,规范命名URL中的每个部分。注意POST
            17、续方咨询随访问卷消息
            18、个人名片
            19、消息转发
            20、康复计划发送
    **会话类型** 
    
        sessions的type字段

+ 1 - 0
src/server/include/commons.js

@ -92,6 +92,7 @@ const CONTENT_TYPES = {
    PrescriptionCheck:15,//续方审核消息消息
    PrescriptionBloodStatus:16,//续方咨询血糖血压咨询消息
    PrescriptionFollowupContent:17,//续方咨询随访问卷消息
    Rehabilitation: 20, //康复计划发送
    typeToDescription: function (type, defaultDescription) {
        if (CONTENT_TYPES.Image == type) {
            return '[图片]';

+ 1 - 1
src/server/repository/mysql/participant.repo.js

@ -262,7 +262,7 @@ class ParticipantRepo {
    static saveParticipantsToMysql(sessionId, users, handler) {
        let sql = "INSERT INTO " + DB_TABLES.Participants + " (session_id,participant_id,participant_role,last_fetch_time) VALUES ";
        let args = [];
        let nowDate = new Date();
        let nowDate = null;
        for (let j in users) {
            let tokens = users[j].split(":");
            sql += "(?,?,?,?)";