koishi-plugin-xxck-1 0.2.21 → 0.2.23
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/index.js +7 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1826,7 +1826,13 @@ async function doBattleAgree(ctx, session) {
|
|
|
1826
1826
|
await ctx.database.upsert("gacha_battle_user", [w]);
|
|
1827
1827
|
await ctx.database.upsert("gacha_battle_user", [l]);
|
|
1828
1828
|
await ctx.database.upsert("gacha_battle_user", [p1d]);
|
|
1829
|
-
await ctx.database.
|
|
1829
|
+
await ctx.database.upsert("gacha_battle_log", [{
|
|
1830
|
+
qq1: p1,
|
|
1831
|
+
qq2: p2,
|
|
1832
|
+
star,
|
|
1833
|
+
win_qq: winQQ,
|
|
1834
|
+
time: Date.now()
|
|
1835
|
+
}], ["qq1", "qq2", "time"]);
|
|
1830
1836
|
let asset = await ctx.database.get("gacha_user_draw_count", { qq: winQQ });
|
|
1831
1837
|
let vapor = asset[0]?.water_vapor || 0;
|
|
1832
1838
|
await ctx.database.upsert("gacha_user_draw_count", [{ qq: winQQ, water_vapor: vapor + reward }]);
|