瀏覽代碼

代码修改

yeshijie 7 年之前
父節點
當前提交
c3bf6683c4

+ 1 - 1
src/server/endpoints/v2/application.endpoint.js

@ -38,7 +38,7 @@ router.get(APIv2.Application.BadgeNo, function (req, response) {
                res =  JSON.parse(res)
                if (res.status == 200) {
                    let data = res.data;
                    count = JSON.parse(data.imMsgCount).count + data.system.amount + data.healthIndex.amount + data.sign.amount;
                    count = JSON.parse(data.imMsgCount).count + data.system.amount + data.concern.amount;
                }
                response.status(200).send({"count": count});
            });

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

@ -20,7 +20,7 @@ if (process.env.IM_PROFILE === "prod") {
    wlyyDBName = "wlyy";
} else if (process.env.IM_PROFILE === "test") {
    configFile += "test";
    wlyyDBName = "wlyy";
    wlyyDBName = "wlyy_sr";
} else {
    configFile += "dev";
    wlyyDBName = "wlyy_sr";

+ 1 - 1
src/server/models/sessions/sessions.js

@ -1673,7 +1673,7 @@ class Sessions extends RedisModel {
                    res =  JSON.parse(res)
                    if (res.status == 200) {
                        let data = res.data;
                        count = parseInt(JSON.parse(data.imMsgCount).count) + parseInt(data.system.amount) + parseInt(data.healthIndex.amount) + parseInt(data.sign.amount);
                        count = parseInt(JSON.parse(data.imMsgCount).count) + parseInt(data.system.amount) + parseInt(data.concern.amount);
                    }
                    AppClient.sendNotification(message.targetUserId, message,message.sessionType,count);
                });

+ 3 - 3
src/server/resources/config/config.dev.js

@ -53,11 +53,11 @@ let getTuiConfig = {
// 微信配置
let wechatConfig = {
    appId: 'wxd03f859efdf0873d',
    appSecret: '2935b54b53a957d9516c920a544f2537',
    appId: 'wxe627ffaee2d05a40',
    appSecret: '7c29f6b28be7e54b742883a47ff39767',
    token: '27eb3bb24f149a7760cf1bb154b08040',
    accId: 'gh_733f975e0bed',
    baseUrl: 'ehr.yihu.com/wlyy',
    baseUrl: 'srijk.yihu.com/wlyy',
    template: {
        consultTemplate: '-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18'  // 咨询回复模板
    }

+ 1 - 1
src/server/resources/config/config.prod.js

@ -3,7 +3,7 @@
let imDbConfig = {
    host: '11.1.2.5',
    user: 'wlyy_sr',
    port:9069,
    port:3306,
    password: '123456',
    database: 'im',
    connectionLimit: '100',

+ 16 - 15
src/server/resources/config/config.test.js

@ -1,11 +1,11 @@
"use strict";
let imDbConfig = {
    host: '172.17.110.160',
    user: 'ssgg',
    password: 'ssgg',
    database: 'im_new',
    connectionLimit: '100',
    host: '172.19.103.77',
    user: 'root',
    password: '123456',
    database: 'im_sr',
    connectionLimit: '50',
    charset: 'utf8mb4'
};
@ -13,7 +13,7 @@ let imDbConfig = {
let redisConfig = {
    host: '172.19.103.88',
    port: 6379,
    db: 1
    db: 2
};
// let redisConfig = {
//     host: '192.168.1.220',
@ -24,29 +24,30 @@ let redisConfig = {
let innerRedisConfig = {
    host: '172.19.103.88',
    port: 6379,
    db: 1
    db: 2
};
// 三师后台
let wlyyServerConfig = {
    host: '172.19.103.88',
    port: 9092,
    host: '172.19.103.72',
    port: 9096,
    model:"/wlyy"
};
// 个推AppStore版参数
let getTuiConfig = {
    HOST: 'https://api.getui.com/apiex.htm',
    APPID: 'H6FYbDejks6VjMmW3uH7V6',
    APPKEY: '0PFWlKmLBN9YzhCfFWVgYA',
    MASTERSECRET: 'pvjCGtRZJx9SRVODkxc816'
    APPID: 'NamoCLe9no9pIihdoZ930A',
    APPKEY: 'db7PZsd7TX6JAsLKmWuAT8',
    MASTERSECRET: '5IFJjgxRiI7QpuArMMT3E5'
};
// 微信配置
let wechatConfig = {
    appId: 'wx1f129f7b51701428',
    appSecret: '988f005d8309ed1795939e0f042431fb',
    appId: 'wxe627ffaee2d05a40',
    appSecret: '7c29f6b28be7e54b742883a47ff39767',
    token: '27eb3bb24f149a7760cf1bb154b08040',
    baseUrl: 'ehr.yihu.com/wlyy',
    accId: 'gh_733f975e0bed',
    baseUrl: 'srijk.yihu.com/wlyy',
    template: {
        consultTemplate: '-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18'  // 咨询回复模板
    }