diff --git a/src/chunithm/handler/getGameCharge.ts b/src/chunithm/handler/getGameCharge.ts index 5b182c1..db4a825 100644 --- a/src/chunithm/handler/getGameCharge.ts +++ b/src/chunithm/handler/getGameCharge.ts @@ -1,13 +1,30 @@ +import { GameChargeJson } from "../proto/gameCharge"; import { Repositories } from "../repo"; import { GetGameChargeRequest } from "../request/getGameCharge"; import { GetGameChargeResponse } from "../response/getGameCharge"; +import { CHARGE_IDS } from "../static/charge"; export default async function getGameCharge( rep: Repositories, req: GetGameChargeRequest ): Promise { + const gameChargeList: GameChargeJson[] = []; + + for (const [i, charge] of CHARGE_IDS.entries()) { + gameChargeList.push({ + chargeId: charge.id.toString(), + orderId: (i+1).toString(), + price: charge.price.toString(), + salePrice: charge.salePrice.toString(), + startDate: "2017-12-05 07:00:00.0", + endDate: "2029-12-31 23:59:59.0", + saleStartDate: "2017-12-05 07:00:00.0", + saleEndDate: "2030-12-31 23:59:59.0" + }); + } + return { - length: "0", - gameChargeList: [], + length: gameChargeList.length.toString(), + gameChargeList, }; } diff --git a/src/chunithm/handler/getGameSetting.ts b/src/chunithm/handler/getGameSetting.ts index 3cef5ca..f4a2a77 100644 --- a/src/chunithm/handler/getGameSetting.ts +++ b/src/chunithm/handler/getGameSetting.ts @@ -26,6 +26,6 @@ export default async function getGameSetting( maxCountMusic: "100", }, isDumpUpload: "false", - isAou: "false", + isAou: "true", }; } diff --git a/src/chunithm/static/charge.ts b/src/chunithm/static/charge.ts new file mode 100644 index 0000000..1fd62a3 --- /dev/null +++ b/src/chunithm/static/charge.ts @@ -0,0 +1,17 @@ +export const CHARGE_IDS = Object.freeze([ + { + id: 2310, //World's End ticket x5 + price: 1, + salePrice: 1, + }, + { + id: 2060, //4x bonus ticket + price: 1, + salePrice: 1, + }, + { + id: 2230, //6 songs premium ticket + price: 2, + salePrice: 2, + }, +]); \ No newline at end of file