|
@@ -313,11 +313,7 @@ proto.login = P.coroutine(function* (msg, session, next) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- console.warn("316 msg.headurl:",msg.headurl)
|
|
|
|
|
- if (msg.headurl == "" || !msg.headurl || msg.headurl == "https://bargame.ala456.com/gameRes/1.svg") {
|
|
|
|
|
- msg.headurl = "https://barserver.bargame88.com/0a066484-5914-633e-12fb-b36ccce1431d22224444.png"
|
|
|
|
|
- }
|
|
|
|
|
- console.warn("320 msg.headurl:",msg.headurl)
|
|
|
|
|
|
|
+
|
|
|
self.downloadSvg(msg.headurl, localSvgPath, playerId, function(err) {
|
|
self.downloadSvg(msg.headurl, localSvgPath, playerId, function(err) {
|
|
|
console.warn("96:msg.headurl",msg.headurl)
|
|
console.warn("96:msg.headurl",msg.headurl)
|
|
|
if (err) {
|
|
if (err) {
|
|
@@ -672,7 +668,12 @@ proto.login = P.coroutine(function* (msg, session, next) {
|
|
|
}
|
|
}
|
|
|
var SGJConfigs = yield this.app.models.SGJConfig.findMongoAsync()
|
|
var SGJConfigs = yield this.app.models.SGJConfig.findMongoAsync()
|
|
|
var SGJConfig = SGJConfigs[0]
|
|
var SGJConfig = SGJConfigs[0]
|
|
|
-
|
|
|
|
|
|
|
+ var url = encodeURIComponent(player.headurl)
|
|
|
|
|
+ if (msg.istelegram != 1) {
|
|
|
|
|
+ url = "https://barserver.bargame88.com/image/1.png"
|
|
|
|
|
+ player.headurl = url
|
|
|
|
|
+ }
|
|
|
|
|
+ yield player.saveAsync()
|
|
|
return next(null, { code: C.OK, data: {
|
|
return next(null, { code: C.OK, data: {
|
|
|
isNew: isNew,
|
|
isNew: isNew,
|
|
|
player: {
|
|
player: {
|
|
@@ -680,7 +681,7 @@ proto.login = P.coroutine(function* (msg, session, next) {
|
|
|
account: player.account,
|
|
account: player.account,
|
|
|
userId: String(player.userId),
|
|
userId: String(player.userId),
|
|
|
name: player.name,
|
|
name: player.name,
|
|
|
- headurl:encodeURIComponent(player.headurl),
|
|
|
|
|
|
|
+ headurl:url,
|
|
|
taskQuan:taskQuan,
|
|
taskQuan:taskQuan,
|
|
|
sex: player.sex,
|
|
sex: player.sex,
|
|
|
diamond: String(player.diamond),
|
|
diamond: String(player.diamond),
|