MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / queryBalance

Method queryBalance

wxapp/txdt.js:272–282  ·  view source on GitHub ↗
(prefix = "现金余额")

Source from the content-addressed store, hash-verified

270 }
271
272 async queryBalance(prefix = "现金余额") {
273 const data = await this.mapApi("/activity/v1/withdraw/home", {
274 activity_id: ACTIVITY_ID,
275 game_id: 4,
276 rule_id: "tencent_map_withdraw",
277 });
278 $.log(
279 `${prefix}:金币=${formatCoin(data.coins)},可提现=${formatCoin(data.withdrawable_amount)},门槛=${formatCoin(data.current_withdraw_threshold)},奖池=${formatCoin(data.jackpot_amount)}`
280 );
281 return data;
282 }
283
284 async queryAssets() {
285 const data = await this.mapApi("/activity/v1/assert/home", { activity_id: ACTIVITY_ID });

Callers 1

runMethod · 0.95

Calls 3

mapApiMethod · 0.95
formatCoinFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected