Jelajahi Sumber

查询接口修改

7 tahun lalu
induk
melakukan
92678f4fe2

+ 2 - 1
src/server/include/endpoints.js

@ -20,7 +20,8 @@ const APIv2 = {
        Logout: '/logout',
        User: '/:user_id',
        UserStatus: '/:user_id/status'
        UserStatus: '/:user_id/status',
        UserConsultTime:'/:user_id/consult/time'
    },
    Sessions: {
        Base: '/api/v2/sessions',

+ 0 - 2
src/server/models/push/pusher.js

@ -52,10 +52,8 @@ class Pusher extends RedisModel {
            payload.contentAvailable = 1;
            payload.category = type;
            payload.customMsg.payload1 = customData;
            log.error("推送消息对象:"+JSON.stringify(payload));
            let template = new APNTemplate();
            template.setApnInfo(payload);
            let singleMessage = new SingleMessage();
            singleMessage.setData(template);
            this.gt.pushAPNMessageToSingle(this.getuiConfig.APPID, deviceToken, singleMessage, function (err, res) {

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

@ -482,7 +482,6 @@ class Sessions extends RedisModel {
                                logger.error("Get sessions failed: ", err);
                            });
                    };
                    functionList.push(fun);
                }
                async.waterfall(functionList);