|
@@ -54,90 +54,25 @@ exports.UrlDecode = function(str){
|
|
|
|
|
|
var template = {
|
|
|
std : {
|
|
|
- '10001': { cfid:10001, typename:'CNY', price:6, diamond:60, name:'60钻石'},
|
|
|
- '10002': { cfid:10002, typename:'CNY', price:30, diamond:300, name:'300钻石'},
|
|
|
- '10003': { cfid:10003, typename:'CNY', price:68, diamond:680, name:'680钻石'},
|
|
|
- '10004': { cfid:10004, typename:'CNY', price:98, diamond:980, name:'980钻石'},
|
|
|
- '10005': { cfid:10005, typename:'CNY', price:128, diamond:1280, name:'1280钻石'},
|
|
|
- '10006': { cfid:10006, typename:'CNY', price:198, diamond:1980, name:'1980钻石'},
|
|
|
- '10007': { cfid:10007, typename:'CNY', price:328, diamond:3280, name:'3280钻石'},
|
|
|
- '10008': { cfid:10008, typename:'CNY', price:648, diamond:6480, name:'6480钻石'},
|
|
|
- },
|
|
|
- youda : {
|
|
|
- '10001': { cfid:10001, typename:'CNY', price:6, diamond:60, name:'60钻石'},
|
|
|
- '10002': { cfid:10002, typename:'CNY', price:30, diamond:300, name:'300钻石'},
|
|
|
- '10003': { cfid:10003, typename:'CNY', price:68, diamond:680, name:'680钻石'},
|
|
|
- '10004': { cfid:10004, typename:'CNY', price:98, diamond:980, name:'980钻石'},
|
|
|
- '10005': { cfid:10005, typename:'CNY', price:128, diamond:1280, name:'1280钻石'},
|
|
|
- '10006': { cfid:10006, typename:'CNY', price:198, diamond:1980, name:'1980钻石'},
|
|
|
- '10007': { cfid:10007, typename:'CNY', price:328, diamond:3280, name:'3280钻石'},
|
|
|
- '10008': { cfid:10008, typename:'CNY', price:648, diamond:6480, name:'6480钻石'},
|
|
|
- '10015': { cfid:10015, typename:'CNY', price:30, diamond:0, name:'月卡'},
|
|
|
- '10016': { cfid:10016, typename:'CNY', price:98, diamond:0, name:'超级月卡'},
|
|
|
- '10017': { cfid:10017, typename:'CNY', price:98, diamond:0, name:'高级勋章'},
|
|
|
- '10018': { cfid:10018, typename:'CNY', price:128, diamond:0, name:'成长基金'},
|
|
|
- '10019': { cfid:10019, typename:'CNY', price:328, diamond:0, name:'豪华基金'},
|
|
|
- '10020': { cfid:10020, typename:'USD', price:98, diamond:0, name:'远征通行证'},
|
|
|
- '10021': { cfid:10021, typename:'USD', price:98, diamond:0, name:'竞技通行证'},
|
|
|
- '10022': { cfid:10022, typename:'USD', price:68, diamond:0, name:'超级月卡1'},
|
|
|
- '10023': { cfid:10023, typename:'USD', price:128, diamond:0, name:'勇士勋章1'},
|
|
|
- '10024': { cfid:10024, typename:'USD', price:68, diamond:0, name:'勇士勋章2'},
|
|
|
- '10030': { cfid:10030, typename:'CNY', price:1, diamond:0, name:'1元礼包'},
|
|
|
- '10031': { cfid:10031, typename:'CNY', price:3, diamond:0, name:'3元礼包'},
|
|
|
- '10032': { cfid:10032, typename:'CNY', price:6, diamond:0, name:'6元礼包'},
|
|
|
- '10033': { cfid:10033, typename:'CNY', price:8, diamond:0, name:'8元礼包'},
|
|
|
- '10034': { cfid:10034, typename:'CNY', price:30, diamond:0, name:'30元礼包'},
|
|
|
- '10035': { cfid:10035, typename:'CNY', price:68, diamond:0, name:'68元礼包'},
|
|
|
- '10036': { cfid:10036, typename:'CNY', price:98, diamond:0, name:'98元礼包'},
|
|
|
- '10037': { cfid:10037, typename:'CNY', price:128, diamond:0, name:'128元礼包'},
|
|
|
- '10038': { cfid:10038, typename:'CNY', price:198, diamond:0, name:'198元礼包'},
|
|
|
- '10039': { cfid:10039, typename:'CNY', price:328, diamond:0, name:'328元礼包'},
|
|
|
- '10040': { cfid:10040, typename:'CNY', price:488, diamond:0, name:'488元礼包'},
|
|
|
- '10041': { cfid:10041, typename:'CNY', price:648, diamond:0, name:'648元礼包'},
|
|
|
- '10042': { cfid:10042, typename:'CNY', price:12, diamond:0, name:'12元礼包'},
|
|
|
- '10043': { cfid:10043, typename:'CNY', price:18, diamond:0, name:'18元礼包'},
|
|
|
- },
|
|
|
- yuda_abd : {
|
|
|
- '10001': { cfid:10001, typename:'USD', price:0.99, diamond:60, name:'60钻石'},
|
|
|
- '10002': { cfid:10002, typename:'USD', price:4.99, diamond:300, name:'300钻石'},
|
|
|
- '10003': { cfid:10003, typename:'USD', price:9.99, diamond:680, name:'680钻石'},
|
|
|
- '10004': { cfid:10004, typename:'USD', price:14.99, diamond:980, name:'980钻石'},
|
|
|
- '10005': { cfid:10005, typename:'USD', price:19.99, diamond:1280, name:'1280钻石'},
|
|
|
- '10006': { cfid:10006, typename:'USD', price:29.99, diamond:1980, name:'1980钻石'},
|
|
|
- '10007': { cfid:10007, typename:'USD', price:49.99, diamond:3280, name:'3280钻石'},
|
|
|
- '10008': { cfid:10008, typename:'USD', price:99.99, diamond:6480, name:'6480钻石'},
|
|
|
- '10015': { cfid:10015, typename:'USD', price:4.99, diamond:0, name:'月卡'},
|
|
|
- '10016': { cfid:10016, typename:'USD', price:14.99, diamond:0, name:'超级月卡'},
|
|
|
- '10017': { cfid:10017, typename:'USD', price:14.99, diamond:0, name:'高级勋章'},
|
|
|
- '10018': { cfid:10018, typename:'USD', price:19.99, diamond:0, name:'成长基金'},
|
|
|
- '10019': { cfid:10019, typename:'USD', price:49.99, diamond:0, name:'豪华基金'},
|
|
|
- '10020': { cfid:10020, typename:'USD', price:14.99, diamond:0, name:'远征通行证'},
|
|
|
- '10021': { cfid:10021, typename:'USD', price:14.99, diamond:0, name:'竞技通行证'},
|
|
|
- '10022': { cfid:10022, typename:'USD', price:10.99, diamond:0, name:'超级月卡1'},
|
|
|
- '10023': { cfid:10023, typename:'USD', price:19.99, diamond:0, name:'勇士勋章1'},
|
|
|
- '10024': { cfid:10024, typename:'USD', price:10.99, diamond:0, name:'勇士勋章2'},
|
|
|
- '10030': { cfid:10030, typename:'USD', price:0.19, diamond:0, name:'1元礼包'},
|
|
|
- '10031': { cfid:10031, typename:'USD', price:0.49, diamond:0, name:'3元礼包'},
|
|
|
- '10032': { cfid:10032, typename:'USD', price:0.99, diamond:0, name:'6元礼包'},
|
|
|
- '10033': { cfid:10033, typename:'USD', price:1.99, diamond:0, name:'8元礼包'},
|
|
|
- '10034': { cfid:10034, typename:'USD', price:4.99, diamond:0, name:'30元礼包'},
|
|
|
- '10035': { cfid:10035, typename:'USD', price:10.99, diamond:0, name:'68元礼包'},
|
|
|
- '10036': { cfid:10036, typename:'USD', price:14.99, diamond:0, name:'98元礼包'},
|
|
|
- '10037': { cfid:10037, typename:'USD', price:19.99, diamond:0, name:'128元礼包'},
|
|
|
- '10038': { cfid:10038, typename:'USD', price:29.99, diamond:0, name:'198元礼包'},
|
|
|
- '10039': { cfid:10039, typename:'USD', price:49.99, diamond:0, name:'328元礼包'},
|
|
|
- '10040': { cfid:10040, typename:'USD', price:74.99, diamond:0, name:'488元礼包'},
|
|
|
- '10041': { cfid:10041, typename:'USD', price:99.99, diamond:0, name:'648元礼包'},
|
|
|
- '10042': { cfid:10042, typename:'USD', price:1.99, diamond:0, name:'12元礼包'},
|
|
|
- '10043': { cfid:10043, typename:'USD', price:2.99, diamond:0, name:'18元礼包'},
|
|
|
+ '20001': { cfid:20001, typename:'USD', price:.19, name:'1元档位'},
|
|
|
+ '20002': { cfid:20002, typename:'USD', price:.45, name:'3元档位'},
|
|
|
+ '20003': { cfid:20003, typename:'USD', price:.99, name:'6元档位'},
|
|
|
+ '20004': { cfid:20004, typename:'USD', price:.99, name:'8元档位'},
|
|
|
+ '20005': { cfid:20005, typename:'USD', price:1.99, name:'12元档位'},
|
|
|
+ '20006': { cfid:20006, typename:'USD', price:2.99, name:'18元档位'},
|
|
|
+ '20007': { cfid:20007, typename:'USD', price:4.99, name:'30元档位'},
|
|
|
+ '20008': { cfid:20008, typename:'USD', price:10.99, name:'68元档位'},
|
|
|
+ '20009': { cfid:20009, typename:'USD', price:14.99, name:'98元档位'},
|
|
|
+ '20010': { cfid:20010, typename:'USD', price:19.99, name:'128元档位'},
|
|
|
+ '20011': { cfid:20011, typename:'USD', price:29.99, name:'198元档位'},
|
|
|
+ '20012': { cfid:20012, typename:'USD', price:49.99, name:'328元档位'},
|
|
|
+ '20013': { cfid:20013, typename:'USD', price:74.99, name:'488元档位'},
|
|
|
+ '20014': { cfid:20014, typename:'USD', price:99.99, name:'648元档位'},
|
|
|
},
|
|
|
}
|
|
|
// Android 产品包的配置数据
|
|
|
var Android = {
|
|
|
editor : template.std, // 测试渠道
|
|
|
- yudha : template.yudha,
|
|
|
- yuda_abd : template.yuda_abd,
|
|
|
- yuda_abdof : template.yuda_abd,
|
|
|
}
|
|
|
|
|
|
// iOS 产品包的配置数据
|
|
@@ -244,6 +179,9 @@ exports.parse = function(platform,channel,key) {
|
|
|
key = a[len-1];
|
|
|
}
|
|
|
hash = Android;
|
|
|
+ if(hash.editor && hash.editor[key]){
|
|
|
+ return hash.editor[key]
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
} else if(platform == "web"){
|