const path = require('path');
const config = {
    '/activityCommon/getRole': {
        data: './json/getRole.json'
    },
    '/ngapi/getUserTotalScore': {
        data: './json/getUserTotalScore.json'
    },
    '/ctool/getCredits': {
        data: './json/getCredits.json'
    },
    '/ngame/new/getInfo': {
        data: './json/getInfo.json'
    },
    '/ngapi/dostart': {
        data: './json/dostart.json'
    },
    '/ngapi/getStartStatus': {
        data: './json/getStartStatus.json'
    },
    '/ngame/new/submit': {
        data: './json/gameSubmit.json'
    },
    '/ngame/new/getSubmitResult': {
        data: './json/getGameSubmitResult.json'
    },
    '/ngapi/winranks': {
        data: './json/winranks.json'
    },
    '/ngapi/getOptions': {
        data: './json/getOptions.json'
    },
    '/ngapi/getRule': {
        data: './json/getRuleNg.json'
    },
    '/activityVist/addTimesForActivity': {
        data: './json/addTimesForActivity.json'
    },
    '/plugin/collectRule/getCollectGoodsInfo': {
        data: './json/getCollectGoodsInfo.json'
    },
    '/ngapi/realtimerank/0': {
        data: './json/realtimerank.json'
    },
    '/ngapi/realtimerank/1': {
        data: './json/realtimerank2.json'
    },
    '/activityPlugDrawInfo/doJoinPlugdraw': {
        data: './json/doJoinPlugdraw.json'
    },
    '/plugin/getOrderStatus': {
        data: './json/getPlugOrderStatus.json'
    },
    '/collectRule/getOrderStatus': {
        data: './json/getPlugOrderStatus.json'
    },
    '/activityCommon/setRole': {
        data: './json/setRole.json'
    },
    '/hdtool/ajaxElement': {
        data: './json/ajaxElement.json'
    },
    '/hdtool/ajaxThroughInfo': {
        data: './json/ajaxThroughInfo.json'
    },
    '/hdtool/recon/doJoin': {
        data: './json/doJoin.json'
    },
    '/hdtool/getOrderStatus': {
        data: './json/getCustomOrderStatus.json'
    },
    '/hdtool/getOrderInfo': {
        data: './json/getOrderInfo.json'
    },
    '/hdtool/submit': {
        data: './json/customSubmit.json'
    },
    '/ngapi/guessPoker': {
        data: './json/guessPoker.json'
    },
    '/activityPlugin/optionInfo': {
        data: './json/optionInfo.json'
    },
    '/activityPlugin/unblocking': {
        data: './json/unblocking.json'
    },
    '/hdtool/recon/ngame/datapash': {
        data: './json/datapash.json'
    },
    '/summer/doRevive': {
        data: './json/doRevive.json'
    },
    '/summer/getReviveCardNum': {
        data: './json/getReviveCardNum.json'
    },
    '/summer/getUserActivityInfo': {
        data: './json/getSummerInfo.json'
    },
    '/summer/buyProp': {
        data: './json/buySummerProp.json'
    },
    '/summer/getToyInfo': {
        data: './json/getSummerToyInfo.json'
    },
    '/summer/getOrderStatus': {
        data: './json/getSummerOrderStatus.json'
    },
    '/signpet/getPetInfo': {
        data: './json/getPetInfo.json'
    },
    '/signpet/status': {
        data: './json/getPetStatus.json'
    },
    '/signpet/feed': {
        data: './json/petFeed.json'
    },
    '/signpet/getRankList': {
        data: './json/getRankList.json'
    },
    '/signpet/getFoodPiles': {
        data: './json/getFoodPiles.json'
    },
    '/signpet/collectFood': {
        data: './json/collectFood.json'
    },
    '/signpet/addition/getToys': {
        data: './json/getToys.json'
    },
    '/signpet/addition/toyExchange': {
        data: './json/toyExchange.json'
    },
    '/signpet/addition/toyUse': {
        data: './json/toyUse.json'
    },
    '/signpet/addition/collect': {
        data: './json/collect.json'
    },
    '/signactivity/getSignInfo': {
        data: './json/signInfo.json'
    },
    '/signactivity/doSign': {
        data: './json/doSign.json'
    },
    '/activityPlugDrawInfo/getPrizeInfo': {
        data: './json/getPrizeInfo.json'
    },
    '/Crecord/getRecord': {
        data: './json/getRecord.json'
    },
    '/sign/custom/getProfitDetail': {
        data: './json/getProfitDetail.json'
    },
    '/signpet/ctrip/goout': {
        data: './json/goout.json'
    },
    '/signpet/ctrip/goout/result': {
        data: './json/gooutResult.json'
    },
    '/signpet/ctrip/goout/reward': {
        data: './json/gooutReward.json'
    },
    '/plugin/collectRule/getCollectRule': {
        data: './json/getCollectRule.json'
    },
    '/plugin/collectRule/openCollectGoodsPrize': {
        data: './json/getCollectRule.json'
    },
    '/sign/addition/getActToys': {
        data: './json/getActToys.json'
    },
    '/duiba/weOrder': {
        data: './json/weOrder.json'
    },
    '/sign/addition/toy/exchange': {
        data: './json/toyExchangesDataXC.json'
    },
    '/senstiveword/wordscheck': {
        data: './json/wordscheck.json'
    },
    '/customActivity/shuqi/pet/index': {
        data: './json/index.json'
    },
    '/customActivity/shuqi/pet/gameZone': {
        data: './json/gameZone.json'
    },
    '/customActivity/yunji/dog/summon': {
        data: './json/summon.json'
    },
    '/customActivity/yunji/dog/location': {
        data: './json/summon.json'
    },
    '/customActivity/yunji/dog/merge': {
        data: './json/summon.json'
    },
    '/customActivity/yunji/dog/recycle': {
        data: './json/summon.json'
    },
    '/customActivity/yunji/dog/shop': {
        data: './json/shopYunji.json'
    },
    '/customActivity/yunji/dog/teamInfo': {
        data: './json/teamInfo.json'
    },
    '/activtyShareCode/getShareCode': {
        data: './json/getShareCode.json'
    },
    '/customActivity/yunji/dog/join': {
        data: './json/join.json'
    },
    '/customActivity/shuqi/pet/movePet': {
        data: './json/movePet.json'
    },
    '/customActivity/shuqi/pet/mergePet': {
        data: './json/mergePet.json'
    },
    '/customActivity/shuqi/pet/recoverPet': {
        data: './json/recoverPet.json'
    },
    '/customActivity/shuqi/pet/callPet': {
        data: './json/callPet.json'
    },
    '/customActivity/shuqi/pet/refreshReward': {
        data: './json/refreshReward.json'
    },
    '/customActivity/shuqi/pet/getReward': {
        data: './json/getReward.json'
    },
    '/customActivity/shuqi/pet/signSuccess': {
        data: './json/signSuccess.json'
    },
    '/customActivity/shuqi/pet/reportToRead': {
        data: './json/signSuccess.json'
    },
    '/customActivity/shuqi/pet/rankList': {
        data: './json/rankList.json'
    },
    '/customActivity/shuqi/pet/uploadNickName': {
        data: './json/uploadNickName.json'
    },
    '/customActivity/shuqi/pet/myList': {
        data: './json/myPetsList.json'
    },
    '/customActivity/shuqi/pet/callList': {
        data: './json/callPetsList.json'
    },

    // 浦发中秋
    '/hdtool/rank/recentRankListNew': {
        data: './json/recentRankListNew.json'
    },
    '/hdtool/recon/ngame/getNgameStartStatus': {
        data: './json/getNgameStartStatus.json'
    },
    '/customActivity/pufaBank/moonCake/getPhone': {
        data: './json/getPhone.json'
    },
    '/customActivity/pufaBank/moonCake/submitPhone': {
        data: './json/submitPhone.json'
    },
    '/hdtool/recon/getOrderStatus': {
        data: './json/getOrderStatus.json'
    },
    '/hdtool/recon/ngame/ngameSubmit': {
        data: './json/ngameSubmit.json'
    },
    '/hdtool/rank/getOpenPrizeInfo': {
        data: './json/getOpenPrizeInfo.json'
    },
    '/hdtool/rank/rankInfo': {
        data: './json/rankInfo.json'
    },

    '/projectx/{projectId}/getUserSpList.query': {   // 任务信息
        data: './projectX/getUserSpList.json'
    },
    '/projectx/{projectId}/prize.query': {
        data: './projectX/queryPrizeInfo.json'
    },
    '/ctool/getProjectUserInfo': {
        data: './projectX/getProjectUserInfo.json'
    },
    '/projectx/{projectId}/projectRule.query': { // 查询游戏规则
        data: './projectX/getRule.json'
    },
    '/projectx/{projectId}/credits/creditsCost.do': {
        data: './projectX/creditsCost.json'
    },
    '/projectx/{projectId}/credits/queryStatus.do': {
        data: './projectX/queryStatus.json'
    },
    '/projectx/{projectId}/merge.query': {
        data: './projectX/mergeQuery.json'
    },
    '/projectx/{projectId}/strategyRecords.query': {
        data: './projectX/strategyRecords.json'
    },
    '/projectx/{projectId}/records.query': {
        data: './projectX/queryRecords.json'
    },

    // 欢趣庄园
    '/projectx/{projectId}/join_1/landInfo.do': {   // 土地信息
        data: './joyousManor/getLandInfo.json'
    },
    '/projectx/{projectId}/join_1/consumerInfo.do': { // 查询游戏规则
        data: './joyousManor/consumerInfo.json'
    },
    '/projectx/{projectId}/join_1/join.do': {   // 种植
        data: './joyousManor/doPlant.json'
    },
    '/projectx/{projectId}/join_2/join.do': {   // 浇水
        data: './joyousManor/doFeed.json'
    },
    '/projectx/{projectId}/join_3/join.do': {   // 收获
        data: './joyousManor/doHarvest.json'
    },
    '/projectx/{projectId}/join_4/join.do': {   // 出售
        data: './joyousManor/doSell.json'
    },
    '/projectx/{projectId}/join_4/saleInfo.do': {   // 售卖记录
        data: './joyousManor/saleInfo.json'
    },
    '/projectx/{projectId}/join_5/join.do': {   // 完成任务
        data: './joyousManor/doTask.json'
    },
    '/projectx/{projectId}/join_5/taskInfo.do': {   // 任务信息
        data: './joyousManor/taskInfo.json'
    },
    '/projectx/{projectId}/join_4/priceInfo.do': {
        data: './joyousManor/priceInfo.json'
    },
    '/projectx/{projectId}/join_6/join.do': {
        data: './joyousManor/prizeExchange.json'
    },
    '/projectx/{projectId}/join_6/prizeInfo.do': {
        data: './joyousManor/prizeInfo.json'
    },
    '/projectx/{projectId}/join_7/join.do': {
        data: './joyousManor/propExchange.json'
    },
    '/projectx/{projectId}/join_7/propInfo.do': {
        data: './joyousManor/propInfo.json'
    },
    '/projectx/{projectId}/join_8/join.do': {
        data: './joyousManor/useProp.json'
    },
    '/projectx/{projectId}/join_9/join.do': {
        data: './joyousManor/join_9.json'
    },
    '/projectx/{projectId}/area/areaPrice.do': {
        data: './joyousManor/areaPrice.json'
    },
    '/projectx/{projectId}/area/join.do': {
        data: './joyousManor/unlockLand.json'
    },
    '/projectx/{projectId}/questions/join.do': {
        data: './joyousManor/question.json'
    },
    '/projectx/{projectId}/join_1/achieves.do': {
        data: './joyousManor/achieves.json'
    },
    '/projectx/{projectId}/game/mark.do': {
        data: './game/mark.do.json'
    },
    '/projectx/{projectId}/game/join.do': {
        data: './game/join.do.json'
    },
    '/projectx/{projectId}/frontVariable.query': {
        data: './game/frontVariable.json'
    },
    '/projectx/{projectId}/join_5/customInfo.do': {
        data: './game/customInfo.json'
    },
    '/projectx/{projectId}/join_5/frontInfo.do': {
        data: './game/frontInfo.do.json'
    },
};

// for (let item in config) {
//     if (config.hasOwnProperty(item))
//         config[item].path = path.resolve(__dirname, config[item].data);
// }

let projectId = 'local';

for (let item in config) {
    if (config.hasOwnProperty(item)) {
        if (item.indexOf("{projectId}") !== -1) {
            let nk = item.replace("{projectId}", projectId);
            config[nk] = config[item];
            delete config[item];
            item = nk;
        }
        config[item].path = path.resolve(__dirname, config[item].data);
    }
}
module.exports = config;
