generated from root/miduo_server
quick修改参数
parent
f727f93e24
commit
aaa8b0439e
|
@ -40,7 +40,7 @@ public class QuickRechargeController {
|
||||||
|
|
||||||
String ntdata = decode(ntdata0,appsecret);
|
String ntdata = decode(ntdata0,appsecret);
|
||||||
Map<String,String> map = getData(ntdata);
|
Map<String,String> map = getData(ntdata);
|
||||||
LOGGER.info("MapInfo: is_test:{},channel:{},channel_uid:{},game_order:{},order_no:{},pay_time:{}",map.get("is_test"),map.get("channel"),map.get("channel_uid"), map.get("game_order"),map.get("order_no"),map.get("pay_time"));
|
LOGGER.info("MapInfo: cakey:{},is_test:{},channel:{},channel_uid:{},game_order:{},order_no:{},pay_time:{}",appsecret,map.get("is_test"),map.get("channel"),map.get("channel_uid"), map.get("game_order"),map.get("order_no"),map.get("pay_time"));
|
||||||
if (map.isEmpty()) {
|
if (map.isEmpty()) {
|
||||||
LOGGER.info("data is null");
|
LOGGER.info("data is null");
|
||||||
return "FAILED";
|
return "FAILED";
|
||||||
|
@ -106,7 +106,7 @@ public class QuickRechargeController {
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String decode(String src,String key) {
|
public static String decode(String src, String key) {
|
||||||
if(src == null || src.isEmpty()){
|
if(src == null || src.isEmpty()){
|
||||||
return src;
|
return src;
|
||||||
}
|
}
|
||||||
|
@ -135,6 +135,13 @@ public class QuickRechargeController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
String a = "@108@119@172@162@159@82@166@158@169@172@153@161@166@110@88@101@102@103@85@80@156@161@148@168@151@162@163@158@116@85@135@140@118@101@108@87@83@165@164@154@165@157@145@158@167@159@155@113@90@165@162@82@118@113@109@170@168@162@152@162@170@151@157@151@157@157@167@168@148@153@149@119@115@166@149@165@171@146@157@153@118@115@156@163@150@167@150@172@167@119@102@115@102@156@165@151@164@157@167@169@113@110@147@161@152@167@158@151@164@111@102@112@103@154@155@145@165@161@150@165@113@117@152@159@152@161@160@157@156@151@169@158@151@112@149@157@153@110@98@152@110@106@104@151@155@110@106@147@152@107@151@158@149@110@110@154@111@153@106@155@145@154@149@102@153@103@112@152@95@98@108@97@155@153@151@162@166@156@159@143@172@156@149@119@111@156@157@152@165@161@151@164@143@167@166@153@152@164@110@117@102@156@152@147@166@159@155@160@151@166@165@148@156@165@111@117@154@154@162@156@150@162@164@156@149@170@114@102@99@98@96@105@110@113@96@101@104@97@102@101@106@108@99@96@106@100@104@106@100@109@104@106@111@100@105@112@98@111@112@100@154@147@157@158@150@168@162@150@157@163@116@112@167@169@151@149@169@146@159@168@113@105@101@103@105@99@100@108@96@107@102@107@100@102@97@111@108@111@101@106@108@104@108@107@109@106@102@108@102@162@163@157@152@171@148@165@166@113@110@168@145@177@147@169@156@159@149@119@105@105@98@102@101@97@105@97@106@109@83@97@107@109@98@111@109@110@107@115@102@163@147@177@143@172@157@162@152@112@108@154@164@168@165@160@172@111@102@98@113@111@111@95@152@160@160@174@161@173@115@115@170@167@147@172@165@171@114@101@111@97@163@173@152@173@165@165@118@109@155@172@172@169@148@163@150@163@146@171@148@166@168@117@104@99@98@104@96@111@108@101@146@100@101@105@103@108@143@102@104@97@103@147@121@133@119@130@134@124@117@117@98@158@173@171@169@148@165@151@160@153@166@150@160@165@110@117@102@166@149@165@171@146@157@153@118@115@98@161@172@156@148@164@166@157@160@150@164@152@165@171@145@159@153@115";
|
||||||
|
String ntdata = decode(a,callbackkey);
|
||||||
|
System.out.println(ntdata);
|
||||||
|
Map<String, String> data = getData(ntdata);
|
||||||
|
System.out.println(data);
|
||||||
|
}
|
||||||
|
|
||||||
public static Map<String,String> getData(String xml){
|
public static Map<String,String> getData(String xml){
|
||||||
//1.创建Reader对象
|
//1.创建Reader对象
|
||||||
|
|
Loading…
Reference in New Issue