8 rokov pred
rodič
commit
8c3b0e3358

+ 1 - 1
src/doctor/endpoints/users.endpoint.js

@ -101,7 +101,7 @@ router.get(APIv1.Users.Logout, function (req, res) {
 *  {status: 1}, app状态,0在后台,1在前台
 */
router.post(APIv1.Users.UserStatus, function (req, res) {
    let userId = req.param('user_id');
    let userId = req.query.user_id;
    let status = req.body;
    if (!objectUtil.isJsonObject(status)) {
        throw {httpStatus: 406, message: "Problems parsing json."};

+ 2 - 2
src/doctor/repository/system.msg.repo.js

@ -12,10 +12,10 @@ exports.save = function(to, contentType, title, summary, content, handler) {
};
exports.getSystemList=function(userId, handler){
    let sql ="select count(1) as newMessageCount,max(m.content) as lastContent FROM ydf_message m  where  m.receiver = ? and m.type in(301,302,303,304,305) and m.readonly =1;";
    let sql ="select count(1) as newMessageCount,max(m.content) as lastContent FROM ydf_message m  where  m.receiver = ? and m.sender<>? and m.type in(301,302,303,304,305) and m.readonly =1;";
    imRepo.execQuery({
        "sql": sql,
        "args": [userId],
        "args": [userId,userId],
        "handler": handler
    });
}