mirror of
https://github.com/laochan-eacnet/backend.git
synced 2026-10-02 19:47:59 +03:00
remove maomani notice from sv6_common, change DDR_TICKET count to 10
This commit is contained in:
@@ -27,7 +27,7 @@ export default class extends Combine(User, EacGeneric) {
|
||||
item_num: v.s32(1),
|
||||
item: {
|
||||
item_id: v.str('DDR_TICKET'),
|
||||
not_free_count: v.s32(114514),
|
||||
not_free_count: v.s32(10),
|
||||
free_count: v.s32(0),
|
||||
buyable_point: v.s32(9999999),
|
||||
},
|
||||
|
||||
@@ -6,6 +6,7 @@ import { requestEa3 } from "../../utils/ea3.js";
|
||||
import { SDVX_AC_MODEL } from "./index.js";
|
||||
import { tokenToCardNumber } from '../../utils/laochan-id.js';
|
||||
import { cache } from '../../decorators/cache.js';
|
||||
import { writeFileSync } from "fs";
|
||||
|
||||
export class AcRelay {
|
||||
@generic()
|
||||
@@ -38,8 +39,21 @@ export class AcRelay {
|
||||
}
|
||||
|
||||
@cache('sv6_common')
|
||||
@generic()
|
||||
async sv6_common(ctx: Context): Promise<Serializable> {
|
||||
return this.acRelayCommon(ctx);
|
||||
const { status, response } = await requestEa3(ctx.acRelayInfo, SDVX_AC_MODEL, ctx.token);
|
||||
|
||||
// remove notice from response
|
||||
response['game']['extend']['info'] = response['game']['extend']['info']
|
||||
.filter(v => v['extend_id'].__value !== "1");
|
||||
|
||||
return {
|
||||
status: v.s32(0),
|
||||
error_code: v.s32(0),
|
||||
xrpc_status_code: v.s32(status),
|
||||
xrpc_fault_code: v.s32(status),
|
||||
response,
|
||||
};
|
||||
}
|
||||
|
||||
async sv6_save_m(ctx: Context): Promise<Serializable> {
|
||||
|
||||
Reference in New Issue
Block a user