import { AESEncrypt } from "./Crypto";

export default [
  {
    url: '/game/startGame.do',
    response: ({ query }) => {
      return {
        code: "123",
        success: true,
        message: "message",
        data: AESEncrypt(JSON.stringify({
          recordId: "recordId",
          countdownSeconds: 120,
          targetConfig: {
            target1: 1, // 背包数量	
            target2: 1, // 飞机数量
          },
        }), "4fe20bdefdd4804f", "cDOiBC1n2QrkAY2P"),
        // data: "TtL6pvFMpXEajymGe7uOoiD0iaAnxxtuOFqvG+Vo0R4qzJQlb+eQneEkPKv+nNsXKJHVe/hfKTQAMj6FuC2Ltg=="
      }
    },
  },
  {
    url: '/game/submitGame.do',
    response: ({ query }) => {
      return {
        "success": true,
        "code": "",
        "message": "",
        "data": {
            "gotSpInfo": {
                "spId": "sp_landmark1",
                "name": "北京",
                "icon": "https://www.baidu.com/tiananmen.png"
            },
            "rewardDrawTimes": 1,
            "leftGameTimes": 2
        }
      }
    }
  },
]
