采用数据加密的形式:md5+des
package com.test.moltest;
import net.sf.json.jsonobject;
import com.huonet.util.destools;
import com.huonet.util.userjsonutil;
public class mobilerecharg {
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));
string res= http://www1.beijing.com.cn/user/api/mobile_test.jsp?s=+s;
system.out.println( res==+res);
//调用结束
//处理返回结果
//res = clp5zjwtq9waj0q6qnj6tarnhqmowujv/frlhdmk4ufxexx0beeh+pbi9guwdjtju/xchsqrifjlezvqgw8efb4jxzoosnxtstg00gxvzrovinl6o30hua==;
system.out.println(userjsonutil.decryptjsonuser1(res.trim()));
s = destools.decrypt(testtest, s);//解密1
jobj = jsonobject.fromobject(s);
system.out.println(jobj);
}
}
这个接口要php如何调用?
分享到:
------解决方案--------------------
这是啥呀,易信?
------解决方案--------------------
接了 干什么啊 ,最近也在弄 ,还在准备中,但是没什么思路啊。。。说说你的解决方案啊...具体是个怎么过程
------解决方案--------------------
接分
------解决方案--------------------
楼主把代码共享下...我过段时间也要弄...
------解决方案--------------------
楼主代码分享下
------解决方案--------------------
http://www1.beijing.com.cn/user/api/mobile_test.jsp 这个不是接口文件么?
