Commit 72ac1f60 authored by wildfirecode's avatar wildfirecode

1

parent abd1acda
File added
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/getRule.json'
},
'/activityVist/addTimesForActivity': {
data: './json/addTimesForActivity.json'
},
'/collectGoods/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/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'
},
'/ngame/new/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'
}
}
for (let item in config) {
if (config.hasOwnProperty(item))
config[item].path = path.resolve(__dirname, config[item].data);
}
module.exports = config;
\ No newline at end of file
{
"success": true,
"msg": "报错啦",
"addedTimes": 1,
"shareCount": 1
}
\ No newline at end of file
{
"success": true,
//闯关信息
"throughCurrent": "1",
"throughMode": 3,
"throughNum": 1,
"throughCurrentStep": 8,
"jsTest": "//yun.duiba.com.cn/h5/showCouponPrize/4.0.0/index_201710191434.js",
//弹层js
"cssTest": "//yun.duiba.com.cn/h5/showCouponPrize/4.0.0/index_201710191440.css",
//弹层css
"rule": "欢迎加入夺宝大作战",
"type": "hdtool",
"options": [
{
"hidden": false,
"id": 212949,
"logo": "//yun.duiba.com.cn/upload/uP99F1462438316972.png",
"name": "谢谢参与",
"prizeType": "thanks"
},
{
"hidden": false,
"id": 212951,
"logo": "//yun.duiba.com.cn/upload/uP99F1462438316972.png",
"name": "谢谢参与",
"prizeType": "thanks"
}
],
"element": {
"isCreditsTypeOpen": false,
"freeLimit": 104,
"myCredits": "858102",
"needCredits": "2",
"status": 5
}
}
{
"throughNum": 1,
"throughCurrent": "1",
"throughCurrentStep": 9,
"skincontent": "<link rel=\"stylesheet\" href=\"//yun.dui88.com/h5/custom/richRabbit/index_201709221442.css\"> \n<style type=\"text/css\">\n \n </style>\n<div id=\"db-content\" style=\"display: none;\">\n <a href=\"\" class=\"record\"></a>\n <span class=\"rule\"></span>\n <div class=\"title\"></div>\n <div class=\"main\">\n <div class=\"title\"></div>\n <div class=\"touziP\">\n <div class=\"touzi\"></div>\n <div class=\"arrows\"></div>\n <div class=\"touziNum\"></div>\n </div>\n <div class=\"door door1\"></div>\n <div class=\"door door2\"></div>\n <div class=\"moonGirl\" id=\"moonGirl\"></div>\n <div class=\"needCredits\" id=\"needCredits\"></div>\n </div>\n <div class=\"jitu\">\n <div class=\"tup\">\n <div class=\"tu\">\n <img />\n <span></span>\n </div>\n <p></p>\n </div> \n <i class=\"jia1\"></i>\n <div class=\"tup\">\n <div class=\"tu\">\n <img />\n <span></span>\n </div>\n <p></p>\n </div> \n <i class=\"jia2\"></i>\n <div class=\"tup\">\n <div class=\"tu\">\n <img />\n <span></span>\n </div>\n <p></p>\n </div> \n </div>\n <div class=\"diagnose-modal\"></div>\n </div>\n<script type=\"text/javascript\">\nCFG.quirePluginOrder = '/activityPlugDrawInfo/getOrderStatusPlugdraw';\nCFG.getCollectGoodsInfo = '/collectGoods/getCollectGoodsInfo';\nCFG.id = '503';\nCFG.asyncFiles = [\n '//\nyun.dui88.com/h5/custom/richRabbit/components_201709221442.js'\n];\n\n</script>\n<script type=\"text/javascript\" src=\"//yun.dui88.com/h5/custom/richRabbit/index_201709221442.js\"></script>\n",
"throughMode": 3,
"success": true,
"throughInfo": [
{
"img": "",
"prizeType": 1,
"step": 3
},
{
"img": "",
"prizeType": 1,
"step": 5
},
{
"img": "",
"prizeType": 1,
"step": 7
},
{
"img": "",
"prizeType": 1,
"step": 9
},
{
"img": "",
"prizeType": 1,
"step": 11
},
{
"img": "",
"prizeType": 1,
"step": 13
},
{
"img": "",
"prizeType": 1,
"step": 15
},
{
"img": "",
"prizeType": 1,
"step": 17
},
{
"img": "",
"prizeType": 1,
"step": 19
},
{
"img": "",
"prizeType": 1,
"step": 21
},
{
"img": "",
"prizeType": 1,
"step": 23
},
{
"img": "",
"prizeType": 1,
"step": 25
},
{
"img": "",
"prizeType": 1,
"step": 27
},
{
"img": "",
"prizeType": 1,
"step": 29
},
{
"img": "",
"prizeType": 1,
"step": 31
},
{
"img": "",
"prizeType": 2,
"step": 33
},
{
"img": "",
"prizeType": 1,
"step": 36
}
]
}
\ No newline at end of file
{
"success":1,
"data":110,
"code":"100000","desc":"已购鱼钩超过上限"
}
{
"orderId": "547990844583110289",
"success": true,
"prizeType": 6,
"needPrize": false,
"point": 2,
"currentLocation": 3
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"data": null
}
\ No newline at end of file
{
"needCredits": 0,
"status": 1,
"orderId": "544328581298130001",
"success": false,
"message": "我靠又报错了"
}
\ No newline at end of file
{
"orderId": "552632497152350289",
"success": true
}
\ No newline at end of file
{
"timestamp":12345678,
"success":true,
"data":{
"reviveCardNum":2,
"status":true
}
}
\ No newline at end of file
{
"message": "请求成功",
"success": true,
"ticketId": "171867459",
"token": "/*5BB9uoTyLt7*/var/*NbXqUV*/__4VUBo/*gfH63BA6f*/=\\u0053\\u0074\\u0072\\u0069\\u006e\\u0067\n/*k9hHbHpFp*/./*sJLQ6AIff4HZhH*/\\u0066r\\u006fm\\u0043ha\\u0072C\\u006fde/*sv50nOo9CIKj*/;\nvar/*najx33*/_x_PQd = [/*WXruNxCnG4jOZWemA*/1210,794,2073,591,844,/*Gv1hnM0iiVFCuA2Zk*/];//rQHYGnbZc9\nvar/*wYOIAwM*/_$GkC/*1WeIMg5u*/=/*wlnLuEikSDmnTpL1cV*/function(/*tdRNLt3GsMyRPuI7YYJ*/){\n/*hxvDuQxH2y1Dfn4qs1b*/return/*biuh45PAz73Nlgm3P*/arguments[/*iJABwXHs*/0]^/*YGFpx*/\n/*ot5URMyEKrOxj0aZg1*/_x_PQd[/*oSbd7lE0y*/0];/*90iBnDN7Ovuk3kUQ*/}/*yULSjRZjpg0FG0JY*/;\nvar/*djmGqjGMKHN*/_$jjQ9/*apbSVQeI373w01R*/=/*MFFoC6BGHEqY*/function(/*GryM8sOJd1vhdvLSVW*/){\n/*fc8x0*/return/*GGEtg846*/arguments[/*xFoUl4nfJ*/0]^/*51eU9jg0*/\n/*KVdsEN3*/_x_PQd[/*3bQQX0S9lqC*/1];/*TO2lwn1ZLfaNnbhmFUN*/}/*p1wlhvKs1*/;\nvar/*wUIaVFO4n3zEaaxaKn5*/_$A70/*OMDkRIWqKUo4ysiRt*/=/*7dfV4Ae*/function(/*F0SibNhlt9IiMTtIDVg*/){\n/*o6OPMGRkGS*/return/*UGllg0o*/arguments[/*XOVODvPrA9R*/0]^/*6FoWV9e9Kc*/\n/*LcIiYf5l3*/_x_PQd[/*7PZzyiJcQfk7zHYc*/2];/*gmG1bCy9*/}/*DsCjr*/;\nvar/*8qyQL*/_$yEy/*aJrGhTv52Wzp6QFOde*/=/*sM3L6y7kbIlY6Uwy*/function(/*VvRKMskWScg1YjzvhL*/){\n/*jOIUJHX*/return/*RjNdAL*/arguments[/*JN2V1cEyBCFYiu5ae*/0]^/*7pkk4XT6yM*/\n/*3rBmnCfv5lwX*/_x_PQd[/*gZhpN3XJEE0WimwX1h*/3];/*O4CGB06xsGttNG*/}/*qyLJhsLUq0bp4T*/;\nvar/*hWahv4UVyZi*/_$Zk8y/*aLzcSjbxOu0nOpouM*/=/*mkLhviHII8X*/function(/*cVvLxIBy1LrZgy3raY*/){\n/*vL3UDTvWx2XmyXJY*/return/*kMFjy2YQizhDEtWZTq*/arguments[/*Ybv7kmqRH*/0]^/*LhFOZ5c3ccfIPmL1AIQ*/\n/*1rnhcmfQPWy3hsEK*/_x_PQd[/*eDYLEc5Ecm2bZa*/4];/*VmUX1LKDyBDN*/}/*pIxnPZ4zkXiZo*/;\n/*0h54lNFAly*/\\u0065\\u0076\\u0061\\u006c/*rK4e0*/(__4VUBo(32)\n+/*IOOrUz*/__4VUBo(0x5f82/0400,116,-1-~/*DxI4*/(0x6f^0),1071/0xA,0x6579/0400,110,_$yEy(623),61,32,~(0x22^/*Rclf*/-1),\n103&(-1^0x00),Math.abs(121)&-1,0x6165>>/*Xo4ITNuG3jwwQb*/4>>4,_$GkC(~(0x4cc^/*F1Ae*/-1)),0x6873>>/*8heWaAIVKltT*/4>>4,0x0|0x36,49,1087/0xA,042/*ztuIUgNVZIZA00lpOXL6lL9oFkkseSL*/));/*b20x9hYEs*/\n",
"submitToken": "/*5BB9uoTyLt7*/var/*NbXqUV*/__4VUBo/*gfH63BA6f*/=\\u0053\\u0074\\u0072\\u0069\\u006e\\u0067\n/*k9hHbHpFp*/./*sJLQ6AIff4HZhH*/\\u0066r\\u006fm\\u0043ha\\u0072C\\u006fde/*sv50nOo9CIKj*/;\nvar/*najx33*/_x_PQd = [/*WXruNxCnG4jOZWemA*/1210,794,2073,591,844,/*Gv1hnM0iiVFCuA2Zk*/];//rQHYGnbZc9\nvar/*wYOIAwM*/_$GkC/*1WeIMg5u*/=/*wlnLuEikSDmnTpL1cV*/function(/*tdRNLt3GsMyRPuI7YYJ*/){\n/*hxvDuQxH2y1Dfn4qs1b*/return/*biuh45PAz73Nlgm3P*/arguments[/*iJABwXHs*/0]^/*YGFpx*/\n/*ot5URMyEKrOxj0aZg1*/_x_PQd[/*oSbd7lE0y*/0];/*90iBnDN7Ovuk3kUQ*/}/*yULSjRZjpg0FG0JY*/;\nvar/*djmGqjGMKHN*/_$jjQ9/*apbSVQeI373w01R*/=/*MFFoC6BGHEqY*/function(/*GryM8sOJd1vhdvLSVW*/){\n/*fc8x0*/return/*GGEtg846*/arguments[/*xFoUl4nfJ*/0]^/*51eU9jg0*/\n/*KVdsEN3*/_x_PQd[/*3bQQX0S9lqC*/1];/*TO2lwn1ZLfaNnbhmFUN*/}/*p1wlhvKs1*/;\nvar/*wUIaVFO4n3zEaaxaKn5*/_$A70/*OMDkRIWqKUo4ysiRt*/=/*7dfV4Ae*/function(/*F0SibNhlt9IiMTtIDVg*/){\n/*o6OPMGRkGS*/return/*UGllg0o*/arguments[/*XOVODvPrA9R*/0]^/*6FoWV9e9Kc*/\n/*LcIiYf5l3*/_x_PQd[/*7PZzyiJcQfk7zHYc*/2];/*gmG1bCy9*/}/*DsCjr*/;\nvar/*8qyQL*/_$yEy/*aJrGhTv52Wzp6QFOde*/=/*sM3L6y7kbIlY6Uwy*/function(/*VvRKMskWScg1YjzvhL*/){\n/*jOIUJHX*/return/*RjNdAL*/arguments[/*JN2V1cEyBCFYiu5ae*/0]^/*7pkk4XT6yM*/\n/*3rBmnCfv5lwX*/_x_PQd[/*gZhpN3XJEE0WimwX1h*/3];/*O4CGB06xsGttNG*/}/*qyLJhsLUq0bp4T*/;\nvar/*hWahv4UVyZi*/_$Zk8y/*aLzcSjbxOu0nOpouM*/=/*mkLhviHII8X*/function(/*cVvLxIBy1LrZgy3raY*/){\n/*vL3UDTvWx2XmyXJY*/return/*kMFjy2YQizhDEtWZTq*/arguments[/*Ybv7kmqRH*/0]^/*LhFOZ5c3ccfIPmL1AIQ*/\n/*1rnhcmfQPWy3hsEK*/_x_PQd[/*eDYLEc5Ecm2bZa*/4];/*VmUX1LKDyBDN*/}/*pIxnPZ4zkXiZo*/;\n/*0h54lNFAly*/\\u0065\\u0076\\u0061\\u006c/*rK4e0*/(__4VUBo(32)\n+/*IOOrUz*/__4VUBo(0x5f82/0400,116,-1-~/*DxI4*/(0x6f^0),1071/0xA,0x6579/0400,110,_$yEy(623),61,32,~(0x22^/*Rclf*/-1),\n103&(-1^0x00),Math.abs(121)&-1,0x6165>>/*Xo4ITNuG3jwwQb*/4>>4,_$GkC(~(0x4cc^/*F1Ae*/-1)),0x6873>>/*8heWaAIVKltT*/4>>4,0x0|0x36,49,1087/0xA,042/*ztuIUgNVZIZA00lpOXL6lL9oFkkseSL*/));/*b20x9hYEs*/\n",
"extra": {
"initialScore": 50,
"poker": 12
}
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"data": {
"orderId": 1915551,
"rsp": {
"totalScore": 122,
"maxScore": 51,
"maxScoreTime": "2018-04-17 11:02:47",
"rank": 1,
"percentage": 98.00,
"token": "/*de1p57gzlWHPB0oxj33*/var/*pnNUF3DoYb6UMSp*/__076KsOqa/*jStvZLjEnH6r*/=\\u0053\\u0074\\u0072\\u0069\\u006e\\u0067\n/*iGQdoj9XO*/./*kxZHMxtNo8sW*/\\u0066r\\u006fm\\u0043ha\\u0072C\\u006fde/*B5lirw9zGMC*/;\nvar/*iMApn8H9LUexXgbq*/_x_2Bd = [/*epZtAGJKfksd3iwfxiE*/1054,3876,579,3959,2426,/*MJaFDXV3qltvP2Hr8*/];//5EytlwVm1NmyByt\nvar/*IZSeCiQS00d8GgDzJU4*/_$FoT6/*XJPkgG6t6m50Lg884*/=/*VCuLfpxk0GhGj4ZI*/function(/*ydNqBRjn2zqwQaaH*/){\n/*Jd7gaLF*/return/*9bVQp56BlvY6Is*/arguments[/*DYU0QuRhm7O*/0]^/*vPlAmDixThZl5sdS0*/\n/*SUX4jR7Lr*/_x_2Bd[/*cFsu01*/0];/*sMsujZbxAJGEZBNaR*/}/*SeL3fXntthVJ1*/;\nvar/*UvC6bSrbN3q1kTX*/_$yI02/*ED2tBjL*/=/*kZfLU2GU0*/function(/*kVI9fRD*/){\n/*IIKDIdasg*/return/*1akA7xnetiDFXSCxW*/arguments[/*8q3UIK1ImBWXDZ*/0]^/*Ln4pcuWYo*/\n/*IFOh800sJKIrE*/_x_2Bd[/*jWGzQ60W*/1];/*TDeh2yiXeU*/}/*STSgKSxup5mJN*/;\nvar/*LeZ5io7XL*/_$GVG/*CtKFl79h*/=/*2wn0o*/function(/*TamhA*/){\n/*wYRLLfV*/return/*WajQjGl*/arguments[/*j7abTeE163AWK25tc*/0]^/*0FTVKrQ6hyjAu0G*/\n/*U2OCtGr3zVObvGOR*/_x_2Bd[/*jhbqR5luLc*/2];/*ZU5wcoaUR8to79*/}/*UHPyh8x9z*/;\nvar/*8VE8Y*/_$JbA/*cZuGYBOVDXRTRLNPx*/=/*WuSIVm*/function(/*WNtlYFZpPjT5fjem*/){\n/*SM97WURugN1*/return/*saMik5gAlMoHLN*/arguments[/*XhuNwkhNNsy4utIt*/0]^/*VRqr79EYun0t0quipIX*/\n/*uJQ7rEffyge4W4DXC*/_x_2Bd[/*qOmLavolgEHN6fA*/3];/*EX3UIquaRiOqQqsG9K*/}/*8zpCJAHGLeNPF7tv9Gp*/;\nvar/*l0HkqSs*/_$nRJ/*prCzB3y*/=/*j5OlWzh*/function(/*LLVPz0AitK28rLGLZ*/){\n/*Q7c6PQ1JSsAMib*/return/*bDpOMHAYScvJK*/arguments[/*A6vDwo*/0]^/*lUjmizrojuv1*/\n/*bnY8NxTbZwnEAqe*/_x_2Bd[/*xjRkXZD6Uk4WCyGAeb*/4];/*SKUacoLVZpka*/}/*tdKZZW5Cx3UtId*/;\n/*f4EasWboA3cfq*/\\u0065\\u0076\\u0061\\u006c/*E1Xnnbc*/(__076KsOqa(32)\n+/*uoLZy03O3nwxjEAnD1*/__076KsOqa(956/0xA,116,~(0x6f^/*0Mm*/-1),Math.abs(107)&-1,_$GVG(-1-~/*4jBm*/(0x226^0)),110,0x20,0x3d64>>/*g3bES7ay8Kdp*/4>>4,-1-~/*DZb*/(0x20^0),34,\n113,1090/0xA,0x6441>>/*FiUizY7o3*/4>>4,115&(-1^0x00),110,_$yI02(0xf4922/0400),0x6b,34/*NiH838QMhyVPMs*/));/*miSpZLDi8rhs6*/\n",
"consumerId": 1539361,
"status": {
"code": 0,
"btnText": "开始游戏",
"btnDisable": false,
"text": "今日剩余110次免费机会",
"btnEventType": null,
"btnEvent": null
}
}
}
}
\ No newline at end of file
{
"success": true,
"collectGoods": [
{
"count": 0,
"id": 35046,
"img": "//yun.duiba.com.cn/images/201709/bsovoba7s0.png",
"name": "兔宝宝"
},
{
"count": 1,
"id": 35044,
"img": "//yun.duiba.com.cn/images/201709/jp8qosxfcu.png",
"name": "胖胖兔"
},
{
"count": 4,
"id": 35045,
"img": "//yun.duiba.com.cn/images/201709/lgjlgfzti1.png",
"name": "富翁兔"
}
],
"prizeLeve": 0
}
\ No newline at end of file
{
"success": true,
"code": "0000000",
"desc": "成功",
"data": {
"unitName": "积分",
"credits": "100"
}
}
\ No newline at end of file
{
"result": 2,
"exposure": {
"dpm": "1.4.1.0",
"os": "0",
"orderId": "plugin_544328580315190001",
"isEmbed": true,
"consumerId": 1,
"ip": "124.160.94.131",
"materialId": 25636,
"advertId": 21540,
"dcm": "104.21540.0.0",
"activityId": 1893,
"activityUseType": "0",
"appId": 1,
"domain": "//activity.tuistone.com"
},
"success": true,
"lottery": {
"androidDownloadUrl": "//activity.tuistone.com/activity/redirect?orderId=plugin_544328580315190001&activityId=1893&appId=1&consumerId=1&materialId=25636&os=0&advertId=21540&ip=124.160.94.131&activityUseType=0&dpm=1.4.1.0&dcm=104.21540.0.0&device_type=duiba&url=http%3A%2F%2Fh5.ibczy.com%2Fdetails%2Fsimple%2F1999%3Fa_tuiaId%3D123",
"st_info_dpm_go_use": "{\"dpm\":\"1.4.1.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1,\"dcm\":\"104.21540.0.0\"}",
"link": "//trade.m.duiba.com.cn/crecord/recordLuckDetailNew?id=3501446110&locationId=1&dpm=1.4.3.0&dcm=104.21540.0.0&pluginId=1893",
"useBtnText": "下载答题",
"type": "lucky",
"title": "答题赢现金瓜分100万",
"openUrl": "",
"imgurl": "//yun.duiba.com.cn/babi/img/bm2ryg8wht.gif",
"showUse": true,
"linkTo": 0,
"st_info_dpm_close": "{\"dpm\":\"1.4.4.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1,\"dcm\":\"104.21540.0.0\"}",
"iosDownloadUrl": "//activity.tuistone.com/activity/redirect?orderId=plugin_544328580315190001&activityId=1893&appId=1&consumerId=1&materialId=25636&os=0&advertId=21540&ip=124.160.94.131&activityUseType=0&dpm=1.4.1.0&dcm=104.21540.0.0&device_type=duiba&url=http%3A%2F%2Fh5.ibczy.com%2Fdetails%2Fsimple%2F1999%3Fa_tuiaId%3D123",
"st_info_dpm_img": "{\"dpm\":\"1.4.1.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1,\"dcm\":\"104.21540.0.0\"}",
"tip": "西瓜视频发亿元红包啦!答对12题,100万现金等你来瓜分!",
"id": 8918,
"isDownloadUrl": true,
"validate": "2018-01-08"
}
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"data": {
"success": true,
"message": "请求成功",
"tip": "免费",
"option": {
"name": "优惠券测试",
"image": "//yun.duiba.com.cn/images/201705/j7vbab38iw.jpg",
"link": "//trade.m.duiba.com.cn/crecord/recordDetailNew?orderId=655916401264300001&fromPage=record&dbnewopen&dpm=1.19.1.0&dcm=101.37155.0.0",
"type": "coupon",
"itemId": 37155,
"lottery": {
"androidDownloadUrl": "https://h5.ele.me/baida/#group_sn=47a6055b57a86adb2a67556934f5d2c3&",
"coupon_code": "",
"st_info_dpm_go_use": "{\"dpm\":\"1.4.1.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1,\"dcm\":\"101.37155.0.0\"}",
"link": "//trade.m.duiba.com.cn/crecord/recordDetailNew?orderId=655916401264300001&after=1&dbnewopen&dpm=1.4.3.0&dcm=101.37155.0.0",
"useBtnText": "马上使用",
"title": "饿了么4-15元优惠券",
"confirm": false,
"openUrl": "https://h5.ele.me/baida/#group_sn=47a6055b57a86adb2a67556934f5d2c3&",
"imgurl": "//yun.duiba.com.cn/images/201705/j7vbab38iw.jpg",
"showUse": true,
"st_info_dpm_close": "{\"dpm\":\"1.4.4.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1,\"dcm\":\"101.37155.0.0\"}",
"iosDownloadUrl": "https://h5.ele.me/baida/#group_sn=47a6055b57a86adb2a67556934f5d2c3&",
"st_info_dpm_img": "{\"dpm\":\"1.4.1.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1,\"dcm\":\"101.37155.0.0\"}",
"tip": "",
"coupon_key": "",
"validate": "2018-05-31"
}
},
"useDpm": "{\"dpm\":\"1.19.1.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1,\"dcm\":\"101.37155.0.0\"}",
"againDpm": "{\"dpm\":\"1.19.3.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1}",
"flag": false,
"score": "50"
}
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"data": {
"success": true,
"message": "请求成功",
"tip": "2元宝/次",
"option": null,
"useDpm": "{\"dpm\":\"1.19.1.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1,\"dcm\":\"\"}",
"againDpm": "{\"dpm\":\"1.19.3.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1}",
"flag": false
}
}
\ No newline at end of file
{
"success": 1,
"code": null,
"desc": null,
"data": {
"credits":3,
"totalScore": null,
"maxScore": null,
"maxScoreTime": null,
"rank": null,
"percentage": null,
"token": "/*5BB9uoTyLt7*/var/*NbXqUV*/__4VUBo/*gfH63BA6f*/=\\u0053\\u0074\\u0072\\u0069\\u006e\\u0067\n/*k9hHbHpFp*/./*sJLQ6AIff4HZhH*/\\u0066r\\u006fm\\u0043ha\\u0072C\\u006fde/*sv50nOo9CIKj*/;\nvar/*najx33*/_x_PQd = [/*WXruNxCnG4jOZWemA*/1210,794,2073,591,844,/*Gv1hnM0iiVFCuA2Zk*/];//rQHYGnbZc9\nvar/*wYOIAwM*/_$GkC/*1WeIMg5u*/=/*wlnLuEikSDmnTpL1cV*/function(/*tdRNLt3GsMyRPuI7YYJ*/){\n/*hxvDuQxH2y1Dfn4qs1b*/return/*biuh45PAz73Nlgm3P*/arguments[/*iJABwXHs*/0]^/*YGFpx*/\n/*ot5URMyEKrOxj0aZg1*/_x_PQd[/*oSbd7lE0y*/0];/*90iBnDN7Ovuk3kUQ*/}/*yULSjRZjpg0FG0JY*/;\nvar/*djmGqjGMKHN*/_$jjQ9/*apbSVQeI373w01R*/=/*MFFoC6BGHEqY*/function(/*GryM8sOJd1vhdvLSVW*/){\n/*fc8x0*/return/*GGEtg846*/arguments[/*xFoUl4nfJ*/0]^/*51eU9jg0*/\n/*KVdsEN3*/_x_PQd[/*3bQQX0S9lqC*/1];/*TO2lwn1ZLfaNnbhmFUN*/}/*p1wlhvKs1*/;\nvar/*wUIaVFO4n3zEaaxaKn5*/_$A70/*OMDkRIWqKUo4ysiRt*/=/*7dfV4Ae*/function(/*F0SibNhlt9IiMTtIDVg*/){\n/*o6OPMGRkGS*/return/*UGllg0o*/arguments[/*XOVODvPrA9R*/0]^/*6FoWV9e9Kc*/\n/*LcIiYf5l3*/_x_PQd[/*7PZzyiJcQfk7zHYc*/2];/*gmG1bCy9*/}/*DsCjr*/;\nvar/*8qyQL*/_$yEy/*aJrGhTv52Wzp6QFOde*/=/*sM3L6y7kbIlY6Uwy*/function(/*VvRKMskWScg1YjzvhL*/){\n/*jOIUJHX*/return/*RjNdAL*/arguments[/*JN2V1cEyBCFYiu5ae*/0]^/*7pkk4XT6yM*/\n/*3rBmnCfv5lwX*/_x_PQd[/*gZhpN3XJEE0WimwX1h*/3];/*O4CGB06xsGttNG*/}/*qyLJhsLUq0bp4T*/;\nvar/*hWahv4UVyZi*/_$Zk8y/*aLzcSjbxOu0nOpouM*/=/*mkLhviHII8X*/function(/*cVvLxIBy1LrZgy3raY*/){\n/*vL3UDTvWx2XmyXJY*/return/*kMFjy2YQizhDEtWZTq*/arguments[/*Ybv7kmqRH*/0]^/*LhFOZ5c3ccfIPmL1AIQ*/\n/*1rnhcmfQPWy3hsEK*/_x_PQd[/*eDYLEc5Ecm2bZa*/4];/*VmUX1LKDyBDN*/}/*pIxnPZ4zkXiZo*/;\n/*0h54lNFAly*/\\u0065\\u0076\\u0061\\u006c/*rK4e0*/(__4VUBo(32)\n+/*IOOrUz*/__4VUBo(0x5f82/0400,116,-1-~/*DxI4*/(0x6f^0),1071/0xA,0x6579/0400,110,_$yEy(623),61,32,~(0x22^/*Rclf*/-1),\n103&(-1^0x00),Math.abs(121)&-1,0x6165>>/*Xo4ITNuG3jwwQb*/4>>4,_$GkC(~(0x4cc^/*F1Ae*/-1)),0x6873>>/*8heWaAIVKltT*/4>>4,0x0|0x36,49,1087/0xA,042/*ztuIUgNVZIZA00lpOXL6lL9oFkkseSL*/));/*b20x9hYEs*/\n",
"consumerId": 1539361,
"status": {
"code": 0,
"btnText": "开始游戏",
"btnDisable": 0,
"text": "1分/次",
"btnEventType": null,
"btnEvent": null
}
}
}
[
{
"autoOpen": false,
"description": "我是一个实物大奖",
"logo": "//yun.duiba.com.cn/developer/img/activityTool/shake/object.png",
"name": "实物大奖",
"scope": "1"
},
{
"autoOpen": false,
"description": "我是一个话费",
"logo": "//yun.duiba.com.cn/developer/img/activityTool/shake/phone.png",
"name": "话费",
"scope": "2-4"
},
{
"autoOpen": true,
"description": "我是一个优惠券",
"logo": "//yun.duiba.com.cn/developer/img/activityTool/shake/coupon.png",
"name": "优惠券",
"scope": "2-4"
},
{
"autoOpen": true,
"description": "我是一个优惠券",
"logo": "//yun.duiba.com.cn/developer/img/activityTool/shake/coupon.png",
"name": "优惠券",
"scope": "2-4"
},
{
"autoOpen": true,
"description": "我是一个优惠券",
"logo": "//yun.duiba.com.cn/developer/img/activityTool/shake/coupon.png",
"name": "优惠券",
"scope": "2-4"
}
]
{
"success": true,
"message": "请求成功",
"result": 2,
"type": "thanks",
"facePrice": 500,
"cacheInfo": null,
"title": "谢谢参与",
"orderId": 514366819203110289
}
\ No newline at end of file
{
"result": 1,
"success": true,
"lottery": {
"androidDownloadUrl": "//trade.m.duiba.com.cn",
"coupon_code": "123456",
"st_info": "{\"info_type\":\"1\",\"os\":\"1\",\"login_type\":1,\"item_id\":31164,\"isEmbed\":true,\"button_type\":\"70004\",\"ip\":\"115.238.95.186\",\"consumer_id\":1,\"duiba_activity_id\":350,\"domain\":\"//embedlog.duiba.com.cn\",\"activity_type\":\"7\",\"activity_id\":350,\"app_id\":1,\"info\":\"355045189855250001\"}",
"link": "//trade.m.duiba.com.cn/crecord/recordDetailNew?orderId=355045190182920001&after=1&dbnewopen&dpm=1.4.3.0&dcm=101.31164.0.0&pluginId=350",
"useBtnText": "查看使用方法",
"st_info_close": "{\"info_type\":\"1\",\"os\":\"1\",\"login_type\":1,\"item_id\":31164,\"isEmbed\":true,\"button_type\":\"70005\",\"ip\":\"115.238.95.186\",\"consumer_id\":1,\"duiba_activity_id\":350,\"domain\":\"//embedlog.duiba.com.cn\",\"activity_type\":\"7\",\"activity_id\":350,\"app_id\":1,\"info\":\"355045189855250001\"}",
"st_info_expouse": "{\"info_type\":\"1\",\"os\":\"1\",\"login_type\":1,\"item_id\":31164,\"isEmbed\":true,\"button_type\":\"70001\",\"ip\":\"115.238.95.186\",\"consumer_id\":1,\"duiba_activity_id\":350,\"domain\":\"//embedlog.duiba.com.cn\",\"activity_type\":\"7\",\"activity_id\":350,\"app_id\":1,\"info\":\"355045189855250001\"}",
"type": "coupon",
"title": "重复券测试grape",
"st_info_detail": "{\"info_type\":\"1\",\"os\":\"1\",\"login_type\":1,\"item_id\":31164,\"isEmbed\":true,\"button_type\":\"70002\",\"ip\":\"115.238.95.186\",\"consumer_id\":1,\"duiba_activity_id\":350,\"domain\":\"//embedlog.duiba.com.cn\",\"activity_type\":\"7\",\"activity_id\":350,\"app_id\":1,\"info\":\"355045189855250001\"}",
"confirm": false,
"openUrl": "//trade.m.duiba.com.cn/crecord/recordDetailNew?id=355045190182920001&after=1&dbnewopen&dpm=1.4.2.0&dcm=101.31164.0.0",
"imgurl": "//yun.duiba.com.cn/images/201607/73htz55ih9.jpg",
"showUse": true,
"st_info_dpm_close": "{\"dpm\":\"1.4.4.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1,\"dcm\":\"101.31164.0.0\"}",
"iosDownloadUrl": "//trade.m.duiba.com.cn",
"st_info_dpm_img": "{\"dpm\":\"1.4.2.0\",\"consumerId\":1,\"domain\":\"//embedlog.duiba.com.cn\",\"appId\":1,\"dcm\":\"101.31164.0.0\"}",
"tip": "",
"id": 38852,
"coupon_key": "111",
"st_info_use": "{\"info_type\":\"1\",\"os\":\"1\",\"login_type\":1,\"item_id\":31164,\"isEmbed\":true,\"button_type\":\"40003\",\"ip\":\"115.238.95.186\",\"consumer_id\":1,\"duiba_activity_id\":350,\"domain\":\"//embedlog.duiba.com.cn\",\"activity_type\":\"7\",\"activity_id\":350,\"app_id\":1,\"info\":\"355045189855250001\"}",
"validate": "2020-04-01",
"st_info_pic": "{\"info_type\":\"1\",\"os\":\"1\",\"login_type\":1,\"item_id\":31164,\"isEmbed\":true,\"button_type\":\"70003\",\"ip\":\"115.238.95.186\",\"consumer_id\":1,\"duiba_activity_id\":350,\"domain\":\"//embedlog.duiba.com.cn\",\"activity_type\":\"7\",\"activity_id\":350,\"app_id\":1,\"info\":\"355045189855250001\"}"
}
}
\ No newline at end of file
{
"timestamp":12345678,
"success":true,
"data":0
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"data": {
"role": "女"
}
}
\ No newline at end of file
"测试排行榜图片<font color=\"0xff0000\">展示测</font> 试排行榜图片展示测试排行榜图片展示测试排行榜图片展示测试排行榜图片展示测试排行榜图片展示<br>测试排行榜图片展示<br>测试排行榜图片展示<br>测试排行榜图片展示<br>测试排行榜图片展示<br>测试排行榜图片展示<br><br><ul><li>使得发达省份</li><li>fdsgdfgdfg</li><li>阿斯达斯的</li><li>阿斯达斯的</li></ul>阿斯达斯的<br>阿萨德阿萨德<br><ul><li>131232132132</li></ul><ol><li>都市风格豆腐干豆腐干</li><li>的风格豆腐干豆腐干</li><li>豆腐干dfgdfgdfgg豆腐干豆腐干</li><li>但是法国豆腐干豆腐干豆腐干</li></ol><h4><ol><li>但是复苏的发达省份第三方<a href=\"http://baidu.com/\" data-tag=\"is-link\" title=\"Link: http://baidu.com\">http://baidu.com/</a></li></ol></h4>"
\ No newline at end of file
{
"code": 1,
"message": "处理成功",
"success": true
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"timestamp": 1534215030030,
"data": {
"consumerId": 2262417235,
"totalScore": 0,
"ngameRealTimeRankRsp": null,
"closeStatus": false
}
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"timestamp": 1532420635385,
"data": {
"status": 1,
"message": "处理中",
"fishLineLength": 300,
"fishHookNum": 30
}
}
\ No newline at end of file
{
"timestamp": 123456789,
"success": true,
"data": {
"fishLineLength": 30,
"fishHookNum": 1,
"message":"1积分/次"
}
}
\ No newline at end of file
{
"success": true,
"data": 0
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"data": {
"win": true,
"poker": 52,
"score": 0,
"times": 1
}
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"data": {
"list": [
{
"pluginId": 962,
"options": [
{
"id": 274,
"count": 93,
"name": "shiwu",
"img": "//yun.duiba.com.cn/developer/img/activityTool/slotMachine/object.png",
"type": "object"
},
{
"id": 279,
"count": 1,
"name": "1",
"img": "//yun.duiba.com.cn/developer/img/activityTool/slotMachine/coupon.png",
"type": "coupon"
},
{
"id": 315,
"count": 150,
"name": "开心码",
"img": "//yun.duiba.com.cn/developer/img/happy_code.png",
"type": "happyCode"
}
]
},
{
"pluginId": 1003,
"options": [
]
},
{
"pluginId": 1005,
"options": [
{
"id": 334,
"count": 22,
"name": "22",
"img": "//yun.duiba.com.cn/developer/img/activityTool/slotMachine/object.png",
"type": "object"
}
]
}
]
}
}
\ No newline at end of file
{
"success": true,
"code": 1,
"desc": "111",
"data": {
"userList": [
{
"active": false,
"cid": "500131007",
"maxScore": "2",
"rank": "1",
"nickName": "asdasd",
"avatar": null
},
{
"active": false,
"cid": "***1539361",
"maxScore": "1",
"nickName": null,
"rank": "2",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "3",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "5",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "6",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "7",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "8",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "9",
"avatar": null
},
{
"active": false,
"cid": "1",
"maxScore": "1",
"nickName": "没了谁",
"rank": "10",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "11",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "12",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "13",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "14",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "15",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "16",
"nickName": "没了谁",
"rank": "2",
"avatar": null
}
],
"user": {
"cid": "***133000",
"rank": "2",
"maxScore": "1",
"active": false,
"nickName": null,
"avatar": null
},
"inRank": true
}
}
{
"success": true,
"code": 1,
"desc": "111",
"data": {
"userList": [
{
"active": false,
"cid": "500131007",
"maxScore": "2",
"rank": "1",
"nickName": "asdasd",
"avatar": null
},
{
"active": false,
"cid": "***1539361",
"maxScore": "1",
"nickName": null,
"rank": "2",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "3",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "5",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "6",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "7",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "8",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "9",
"avatar": null
},
{
"active": false,
"cid": "1",
"maxScore": "1",
"nickName": "没了谁",
"rank": "10",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "11",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "12",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "13",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "14",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "1",
"nickName": "没了谁",
"rank": "15",
"avatar": null
},
{
"active": false,
"cid": "1539361",
"maxScore": "16",
"nickName": "没了谁",
"rank": "2",
"avatar": null
}
],
"user": {
"cid": "***133000",
"rank": "17",
"maxScore": "1",
"active": false,
"nickName": null,
"avatar": null
},
"inRank": true
}
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"data": null
}
\ No newline at end of file
{
"success": true,
"code": null,
"desc": null,
"data": {
"status": 0
}
}
\ No newline at end of file
{
"consumer": {
"cid": "***9361",
"join": true,
"rank": "1"
},
"message": "请求成功",
"ranks": [
{
"imageUrl": "//yun.dui88.com/images/201710/s314xd9k60.png",
"name": "11111111111111111111111",
"users": [
{
"active": true,
"cid": "***9361",
"maxScore": "6",
"rank": "1"
}
]
},
{
"imageUrl": "//yun.dui88.com/images/201710/s314xd9k60.png",
"name": "11",
"users": [
{
"active": true,
"cid": "***9361",
"maxScore": "6",
"rank": "1"
}
]
},
{
"imageUrl": "//yun.dui88.com/images/201710/s314xd9k60.png",
"name": "11",
"users": [
{
"active": true,
"cid": "***9361",
"maxScore": "6",
"rank": "1"
}
]
},
{
"imageUrl": "//yun.dui88.com/images/201710/s314xd9k60.png",
"name": "11",
"users": [
{
"active": true,
"cid": "***9361",
"maxScore": "6",
"rank": "1"
}
]
},
{
"imageUrl": "//yun.dui88.com/images/201710/s314xd9k60.png",
"name": "11",
"users": [
{
"active": true,
"cid": "***9361",
"maxScore": "6",
"rank": "1"
}
]
},
{
"imageUrl": "//yun.dui88.com/images/201710/s314xd9k60.png",
"name": "11",
"users": [
{
"active": true,
"cid": "***9361",
"maxScore": "6",
"rank": "1"
}
]
}
],
"success": true
}
var webpack = require('webpack');
var getDevConfig = require('./webpack.dev');
const WebpackDevServer = require('webpack-dev-server');
var serverStart = proj => {
const devConfig = getDevConfig(proj);
var compiler = webpack(devConfig);
const devServerOptions = {
host: '0.0.0.0',
contentBase: `./${proj}`,
proxy: {
'/ngapi/*': 'http://localhost:3000',
'/plugin/*': 'http://localhost:3000',
'/ngame/*': 'http://localhost:3000',
'/activityCommon/*': 'http://localhost:3000',
'/ctool/*': 'http://localhost:3000',
'/activityVist/*': 'http://localhost:3000',
'/collectGoods/*': 'http://localhost:3000',
'/activityPlugDrawInfo/*': 'http://localhost:3000',
'/collectRule/*': 'http://localhost:3000',
'/hdtool/*': 'http://localhost:3000',
'/activityPlugin/*': 'http://localhost:3000',
'/summer/*': 'http://localhost:3000'
},
};
WebpackDevServer.addDevServerEntrypoints(devConfig, devServerOptions);
const devServer = new WebpackDevServer(compiler, devServerOptions);
devServer.listen(8080, '0.0.0.0', () => {
console.log(`Starting server ...`);
});
};
module.exports = {
close: () => { },
start: proj => {
serverStart(proj);
}
};
\ No newline at end of file
const path = require('path');
module.exports = proj => {
const result = {
entry: `./${proj}/src/Main.ts`,
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.tsx', '.ts', '.js']
},
output: {
filename: `./output.js`,
path: __dirname
}
};
return result
}
\ No newline at end of file
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const webpack = require('webpack');
const MockWebpackPlugin = require('mock-webpack-plugin');
const mockConfig = require('./mock/config.js');
module.exports = proj => {
const commonConfig = common(proj);
const result = merge(commonConfig, {
devtool: 'eval-source-map',
plugins: [
new MockWebpackPlugin({
config: mockConfig,
port: 3000
})
]
});
return result;
}
\ No newline at end of file
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const webpack = require('webpack');
const path=require('path');
module.exports = merge(common, {
devtool: 'source-map',
plugins: [
new UglifyJSPlugin(
{ sourceMap: true }
), new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
})
],
output: {
filename: 'output.js',
path: path.join(__dirname,'bin-release')
}
});
\ No newline at end of file
#!/usr/bin/env node
var argv = require('yargs')
// .option('o', {
// alias: 'output',
// demand: true,
// describe: '输出路径',
// type: 'string'
// })
.option('project', {
alias: 'proj',
demand: true,
describe: '项目名称',
type: 'string'
})
// .option('i', {
// alias: 'input',
// demand: true,
// describe: '输入路径',
// type: 'string'
// })
.usage('Usage: dbuild [options]')
.usage('Usage: dbuild -proj kickball-egret')
.example('dbuild')
.help('h')
.alias('h', 'help')
.argv;
console.log('hello..')
\ No newline at end of file
const server = require('./build/server');
server.start(argv.project);
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4,6 +4,13 @@
"dbuild": "dbuild.js"
},
"dependencies": {
"yargs": "^12.0.1"
"yargs": "^12.0.1",
"ts-loader": "^4.0.0",
"typescript": "^3.0.3",
"webpack": "^4.1.0",
"webpack-cli": "^2.0.9",
"webpack-dev-server": "^3.1.0",
"webpack-merge": "^4.1.2",
"mock-webpack-plugin": "^2.0.0"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment