...
|
...
|
@@ -296,7 +296,7 @@ class ShoesModel extends global.yoho.BaseModel { |
|
|
let userInfoObj = userInfo[0];
|
|
|
let userId = userInfoObj.id;
|
|
|
let userAvatar = userInfoObj.user_avatar;
|
|
|
let userName = userInfoObj.user_name;
|
|
|
let userName = decodeURIComponent(userInfoObj.user_name);
|
|
|
let scoreInfo = await mySqlCli.query(strScore, {
|
|
|
userId,
|
|
|
actId
|
...
|
...
|
@@ -326,8 +326,6 @@ class ShoesModel extends global.yoho.BaseModel { |
|
|
message: '用户无得分'
|
|
|
};
|
|
|
}
|
|
|
|
|
|
|
|
|
} else {
|
|
|
return {
|
|
|
code: 203,
|
...
|
...
|
@@ -455,7 +453,7 @@ class ShoesModel extends global.yoho.BaseModel { |
|
|
friendObj.rank = scoreInfo[i].rownum;
|
|
|
friendObj.userId = scoreInfo[i].user_id;
|
|
|
friendObj.headimgurl = scoreInfo[i].user_avatar;
|
|
|
friendObj.nickname = scoreInfo[i].user_name;
|
|
|
friendObj.nickname = decodeURIComponent(scoreInfo[i].user_name);
|
|
|
friendObj.playTime = scoreInfo[i].playTime;
|
|
|
friendObj.createTime = parseInt((new Date()).getTime() / 1000, 10) - parseInt(scoreInfo[i].create_time, 10);
|
|
|
|
...
|
...
|
@@ -505,7 +503,7 @@ class ShoesModel extends global.yoho.BaseModel { |
|
|
friendObj.userId = scoreInfo[i].user_id;
|
|
|
friendObj.userPhone = scoreInfo[i].user_phone;
|
|
|
friendObj.headimgurl = scoreInfo[i].user_avatar;
|
|
|
friendObj.nickname = scoreInfo[i].user_name;
|
|
|
friendObj.nickname = decodeURIComponent(scoreInfo[i].user_name);
|
|
|
friendObj.playTime = scoreInfo[i].playTime;
|
|
|
friendObj.createTime = new Date(scoreInfo[i].create_time * 1000).toLocaleString();
|
|
|
|
...
|
...
|
|