日期:2014-05-18 浏览次数:20635 次
public static void main(String[] argv) throws Exception {
//调用充值接口
String application_value = "recharge";
String account = "payease";
String mobile = "13581570818";
String orderid = "201305133127";
String amount = "100";
JSONObject jobj = new JSONObject();
jobj.accumulate("application_value", application_value);
jobj.accumulate("account", account);
jobj.accumulate("mobile", mobile);
jobj.accumulate("amount", amount);
jobj.accumulate("orderid", orderid);
String s = java.net.URLEncoder.encode(UserJsonUtil.encryptJsonUser(jobj));//UserJsonUtil.encryptJsonUser加密方法
System.out.println( "res=="+s);