generated from root/miduo_server
修改充值类
parent
9f72ed3cde
commit
f2616d0c62
|
@ -48,7 +48,7 @@ public class Hb027RechargeController {
|
|||
LOGGER.error("Hb027Callback request appId is null");
|
||||
return result;
|
||||
}
|
||||
if(appIdFrom.equals(appId)){
|
||||
if(!appIdFrom.equals(appId)){
|
||||
LOGGER.error("Hb027Callback request appId is not exist channel appId : " + appIdFrom + "---local appId : " + appId);
|
||||
return result;
|
||||
}
|
||||
|
@ -166,9 +166,30 @@ public class Hb027RechargeController {
|
|||
return s;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String a = "{\"error_code\":0,\"message\":\"Charging successfully!\",\"data\":{\"transaction_id\":\"AP20102226662769G\",\"type\":\"GOOGLE\",\"amount\":\"1.99\",\"vendor\":\"\",\"currency\":\"USD\",\"target\":\"username:XuanXuXu|userid:2618078\",\"state\":\"4_637389746321354058_9_1_1603352647\",\"sandbox\":1,\"time\":\"22\\/10\\/2020 14:44:20 GMT+7\",\"product_id\":\"com.gunx.item1.199\"}}";
|
||||
Gson gson = new Gson();
|
||||
System.out.println(gson.fromJson(a, Map.class));
|
||||
public static void main(String[] args) throws IOException {
|
||||
String url = "http://8.154.16.171:9991/delivery/Hb027Callback";
|
||||
Map<String,String> parms = new HashMap<>();
|
||||
String appId = "ae526ad09217c7de12b3130d8ef9c176";
|
||||
String userId = "500360680&";
|
||||
String orderNum = "BR66e267eb47827910994106412";
|
||||
String money = "6.00";
|
||||
String serverId = "10001";
|
||||
String roleId = "10000012";
|
||||
String roleName = "蔚明亮";
|
||||
String extInfo = "11101";
|
||||
String status = "1";
|
||||
String sign = "f1d5c6b9699fa2e8a149a2c2615653d2&sign2=0a71e9b1d5b3f06069a26134e7465888&sign3=b33ebfec1a690a88153b7406420704a0";
|
||||
parms.put("appId",appId);
|
||||
parms.put("userId",userId);
|
||||
parms.put("orderNum",orderNum);
|
||||
parms.put("money",money);
|
||||
parms.put("serverId",serverId);
|
||||
parms.put("roleId",roleId);
|
||||
parms.put("roleName",roleName);
|
||||
parms.put("extInfo",extInfo);
|
||||
parms.put("status",status);
|
||||
parms.put("sign",sign);
|
||||
String r = HttpUtils.doPost(url, parms);
|
||||
System.out.print("------------------" + r);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue