module.exports = [ // 游戏平台 { url: '/v1/recharge/channel/platform', type: 'get', response: config => { return { code: 200, status: true, data: { data: [ { 'pid': 'd65aa6d7614589bffe62456b88e98811', 'platform': 'MM', 'disRate': 9.8, 'rate': 9.7, 'type': 0, 'length': 2 } ] }, message: '成功' } } }, // 渠道余额 { url: '/v1/getMainChannelMoney', type: 'post', response: config => { return { code: 200, status: true, data: { data: 8816 }, message: '成功' } } }, // 渠道账号 { url: '/v1/recharge/channel/platform', type: 'get', response: config => { return { code: 200, status: true, data: { data: [ { 'cid': 18150, 'title': null, 'account': 'MM17696178' }, { 'cid': 18368, 'title': '', 'account': 'MM14590945' } ] }, message: '成功' } } }, // 查询充值账号是否正常 { url: '/v1/recharge/player/type', type: 'post', response: config => { if (Math.round(Math.random() * 2) < 1) { return { code: 200, status: true, data: [], message: '成功' } } else { return { code: 200, status: false, data: [], message: '失败' } } } } ]