|
@@ -296,7 +296,7 @@ class ShoesModel extends global.yoho.BaseModel { |
|
@@ -296,7 +296,7 @@ class ShoesModel extends global.yoho.BaseModel { |
296
|
let userInfoObj = userInfo[0];
|
296
|
let userInfoObj = userInfo[0];
|
297
|
let userId = userInfoObj.id;
|
297
|
let userId = userInfoObj.id;
|
298
|
let userAvatar = userInfoObj.user_avatar;
|
298
|
let userAvatar = userInfoObj.user_avatar;
|
299
|
- let userName = userInfoObj.user_name;
|
299
|
+ let userName = decodeURIComponent(userInfoObj.user_name);
|
300
|
let scoreInfo = await mySqlCli.query(strScore, {
|
300
|
let scoreInfo = await mySqlCli.query(strScore, {
|
301
|
userId,
|
301
|
userId,
|
302
|
actId
|
302
|
actId
|
|
@@ -326,8 +326,6 @@ class ShoesModel extends global.yoho.BaseModel { |
|
@@ -326,8 +326,6 @@ class ShoesModel extends global.yoho.BaseModel { |
326
|
message: '用户无得分'
|
326
|
message: '用户无得分'
|
327
|
};
|
327
|
};
|
328
|
}
|
328
|
}
|
329
|
-
|
|
|
330
|
-
|
|
|
331
|
} else {
|
329
|
} else {
|
332
|
return {
|
330
|
return {
|
333
|
code: 203,
|
331
|
code: 203,
|
|
@@ -455,7 +453,7 @@ class ShoesModel extends global.yoho.BaseModel { |
|
@@ -455,7 +453,7 @@ class ShoesModel extends global.yoho.BaseModel { |
455
|
friendObj.rank = scoreInfo[i].rownum;
|
453
|
friendObj.rank = scoreInfo[i].rownum;
|
456
|
friendObj.userId = scoreInfo[i].user_id;
|
454
|
friendObj.userId = scoreInfo[i].user_id;
|
457
|
friendObj.headimgurl = scoreInfo[i].user_avatar;
|
455
|
friendObj.headimgurl = scoreInfo[i].user_avatar;
|
458
|
- friendObj.nickname = scoreInfo[i].user_name;
|
456
|
+ friendObj.nickname = decodeURIComponent(scoreInfo[i].user_name);
|
459
|
friendObj.playTime = scoreInfo[i].playTime;
|
457
|
friendObj.playTime = scoreInfo[i].playTime;
|
460
|
friendObj.createTime = parseInt((new Date()).getTime() / 1000, 10) - parseInt(scoreInfo[i].create_time, 10);
|
458
|
friendObj.createTime = parseInt((new Date()).getTime() / 1000, 10) - parseInt(scoreInfo[i].create_time, 10);
|
461
|
|
459
|
|
|
@@ -505,7 +503,7 @@ class ShoesModel extends global.yoho.BaseModel { |
|
@@ -505,7 +503,7 @@ class ShoesModel extends global.yoho.BaseModel { |
505
|
friendObj.userId = scoreInfo[i].user_id;
|
503
|
friendObj.userId = scoreInfo[i].user_id;
|
506
|
friendObj.userPhone = scoreInfo[i].user_phone;
|
504
|
friendObj.userPhone = scoreInfo[i].user_phone;
|
507
|
friendObj.headimgurl = scoreInfo[i].user_avatar;
|
505
|
friendObj.headimgurl = scoreInfo[i].user_avatar;
|
508
|
- friendObj.nickname = scoreInfo[i].user_name;
|
506
|
+ friendObj.nickname = decodeURIComponent(scoreInfo[i].user_name);
|
509
|
friendObj.playTime = scoreInfo[i].playTime;
|
507
|
friendObj.playTime = scoreInfo[i].playTime;
|
510
|
friendObj.createTime = new Date(scoreInfo[i].create_time * 1000).toLocaleString();
|
508
|
friendObj.createTime = new Date(scoreInfo[i].create_time * 1000).toLocaleString();
|
511
|
|
509
|
|