koishi-plugin-ets2-tools-tmp 3.1.7 → 3.1.9
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.
package/lib/api/truckersMpApi.js
CHANGED
package/lib/api/truckyAppApi.js
CHANGED
|
@@ -299,6 +299,9 @@ class ActivityService {
|
|
|
299
299
|
for (const activity of this.todayActivities) {
|
|
300
300
|
const hasProfile = !!activity.profileFile;
|
|
301
301
|
const message = hasProfile ? this.cfg.messages.profileUploaded : this.cfg.messages.profileNotUploaded;
|
|
302
|
+
if (hasProfile && activity.state == 0) {
|
|
303
|
+
message += ",当前状态草稿。";
|
|
304
|
+
}
|
|
302
305
|
const fullMessage = `活动 "${activity.themeName || '未知活动'}" - ${message}`;
|
|
303
306
|
this.logger.message(`活动档位检查: "${activity.themeName || '未知活动'}" - ${hasProfile ? "已上传" : "未上传"}`);
|
|
304
307
|
|
|
@@ -165,7 +165,7 @@ module.exports = async (ctx, cfg, session, tmpId) => {
|
|
|
165
165
|
const steamApiKey = cfg.steamApi?.key;
|
|
166
166
|
if (steamApiKey) {
|
|
167
167
|
const steamId = playerInfo.data.steamId;
|
|
168
|
-
const url = `https://
|
|
168
|
+
const url = `https://evmapi.114512.xyz/proxy/steam/IPlayerService/GetOwnedGames/v1?key=${steamApiKey}&steamid=${steamId}&appids_filter[0]=227300&appids_filter[1]=270880&include_played_free_games=1`;
|
|
169
169
|
const response = await ctx.http.get(url);
|
|
170
170
|
if (response.response && response.response.game_count > 0) {
|
|
171
171
|
for (const game of response.response.games) {
|
package/lib/index.js
CHANGED
|
@@ -79,7 +79,7 @@ exports.Config = koishi_1.Schema.intersect([
|
|
|
79
79
|
tmpMileageRanking: koishi_1.Schema.boolean().default(true).description('是否启用里程排行榜'),
|
|
80
80
|
pointRanking: koishi_1.Schema.boolean().default(false).description('是否启用积分排行榜'),
|
|
81
81
|
tmpVtc: koishi_1.Schema.boolean().default(true).description('是否启用VTC查询'),
|
|
82
|
-
tmpVtcOnline: koishi_1.Schema.boolean().default(
|
|
82
|
+
tmpVtcOnline: koishi_1.Schema.boolean().default(false).description('是否启用车队在线成员查询功能'),
|
|
83
83
|
tmpFootprint: koishi_1.Schema.boolean().default(true).description('是否启用足迹查询'),
|
|
84
84
|
mainSettings: koishi_1.Schema.boolean().default(false).description('是否启用车队平台积分查询功能'),
|
|
85
85
|
resetPassword: koishi_1.Schema.boolean().default(false).description('是否启用车队平台重置密码功能'),
|