|
下面这个是我自己找到的
private String getJsonString(Context paramContext, RequestParameters paramRequestParameters)
{
JSONObject localJSONObject = new JSONObject();
try
{
localJSONObject.put("accessToken", HttpConfig.newInstance().getAccessToken(paramContext));
localJSONObject.put("cardNo", paramRequestParameters.getParam("cardNo").toString());
localJSONObject.put("cardType", paramRequestParameters.getParam("cardType").toString());
return localJSONObject.toString();
}
catch (JSONException paramContext)
{
for (;;)
{
paramContext.printStackTrace();
}
}
}
private void initParams(Context paramContext, RequestParameters paramRequestParameters)
{
String str1 = k.c();
String str2 = getJsonString(paramContext, paramRequestParameters);
StringEntity localStringEntity = getEntity(str2);
str2 = getHmac(str2, str1);
paramRequestParameters.putParam("context", paramContext);
paramRequestParameters.putParam("entity", localStringEntity);
paramRequestParameters.putParam("hmac", str2);
paramRequestParameters.putParam("timestamp", str1);
第一次接触这个 到这里就不知道怎么继续了。。
apk地址 http://pan.baidu.com/s/1jI1epj4
|
|