koishi-plugin-tmp-bot 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,7 +67,7 @@ module.exports = async (ctx, cfg, session, tmpId) => {
67
67
  } else {
68
68
  message += dayjs(ban.expiration + 'Z').format('YYYY年MM月DD日 HH:mm')
69
69
  }
70
- message += "\n🚫封禁原因: " + await baiduTranslate(ctx, cfg, ban.reason.replace(/((http|ftp|https|file):[^'"\s]+)/, ''), false)
70
+ message += "\n🚫封禁原因: " + await baiduTranslate(ctx, cfg, ban.reason, false)
71
71
  } else {
72
72
  message += '查询失败'
73
73
  }
@@ -208,10 +208,10 @@
208
208
  L.circleMarker(map.unproject(mapConfig[data.mapType].calculateMapCoordinate(player.X, player.Y), 8), {
209
209
  color: '#2f2f2f', // 标记点边框颜色
210
210
  weight: 2, // 标记点边框大小
211
- fillColor: data.currentPlayerId === player.MpId.toString() ? '#1cb715' : '#158cfb', // 标记点填充颜色
212
- fillOpacity: 1, // 标记点填充不透明度(0到1之间的值)
211
+ fillColor: data.currentPlayerId.toString() === player.MpId.toString() ? '#1cb715' : '#158cfb', // 标记点填充颜色
212
+ fillOpacity: 1, // 标记点填充不透明度(0到1之间的值)
213
213
  radius: 5, // 标记点半径(以像素为单位)
214
- zIndex: data.currentPlayerId === player.MpId.toString() ? 1000 : undefined
214
+ zIndex: data.currentPlayerId.toString() === player.MpId.toString() ? 1000 : undefined
215
215
  }).addTo(map);
216
216
  }
217
217
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-tmp-bot",
3
3
  "description": "欧洲卡车模拟2 TMP查询机器人",
4
- "version": "1.6.0",
4
+ "version": "1.6.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [