|
发表于 2016-7-13 20:02:33
|
显示全部楼层
广东省韶关市
- public void a(Context paramContext, String paramString1, String paramString2, String paramString3, AsyncHttpResponseHandler paramAsyncHttpResponseHandler)
- {
- RequestParams localRequestParams = new RequestParams();
- localRequestParams.put("app_key", paramString1);
- localRequestParams.put("field_data", paramString2);
- localRequestParams.put("signature", paramString3);
- b(paramContext, "http://m.log.shanbay.com/eslog/log/", localRequestParams, paramAsyncHttpResponseHandler);
- }
复制代码
- private void a(Map<String, List<Object>> paramMap)
- {
- String str1 = Model.toJson(paramMap);
- String str2 = a.a(this.a, str1);
- a("send field data: " + str1);
- com.shanbay.community.e.a().a(this.a, "3dta67u7c76yBdmM", str1, str2, new f(this, Model.class));<p> </p>
复制代码 signature = str2= a.a(this.a, Model.toJson(paramMap););
paramMap=提交的参数,JOSN格式的。
- public static String a(Context paramContext, String paramString)
- {
- String str1 = "3dta67u7c76yBdmM||android||" + a(paramContext) + "||" + paramString + "||" + "98hQ6ndg81Q6jbgxUk6HJFWgn5kLx2Pn";
- try
- {
- MessageDigest localMessageDigest = MessageDigest.getInstance("MD5");
- localMessageDigest.update(str1.getBytes());
- String str2 = a(localMessageDigest.digest());
- return str2;
- }
- catch (Exception localException)
- {
- localException.printStackTrace();
- }
- return "";
- }
复制代码
进一步得到signature =MD5( "3dta67u7c76yBdmM||android||" + 软件包名 + "||" + 提交参数+ "||" + "98hQ6ndg81Q6jbgxUk6HJFWgn5kLx2Pn";)
软件包名=com.shanbay.words
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
评分
-
查看全部评分
|