new Thread(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
String url = Consts.YANZHENG;
result = httpContent(url);
LogUtil.i("验证码", "result=" + result);
//result={"message":"无","content":{"sessionId":"","logPath":"http://183.234.117.210:9090/AppServer/security/createVerifyCodeImage",
//"code":"Dm4j"},"result":"0"}
try {
JSONObject jsonObject=(JSONObject) new JSONObject(result).get("content");
String yzm_logPath = (String) jsonObject.get("logPath");
String yzm_code=(String) jsonObject.get("code");
LogUtil.i("验证码", "yzm_logPath="+yzm_logPath+"yzm_logPath");
Bitmap yzm_imagview=HttpUtils.postImag(yzm_logPath,Sessionid);
handler.obtainMessage(MSG_SUCCESS, yzm_imagview).sendToTarget();
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
@Override
public void run() {
// TODO Auto-generated method stub
String url = Consts.YANZHENG;
result = httpContent(url);
LogUtil.i("验证码", "result=" + result);
//result={"message":"无","content":{"sessionId":"","logPath":"http://183.234.117.210:9090/AppServer/security/createVerifyCodeImage",
//"code":"Dm4j"},"result":"0"}
try {
JSONObject jsonObject=(JSONObject) new JSONObject(result).get("content");
String yzm_logPath = (String) jsonObject.get("logPath");
String yzm_code=(String) jsonObject.get("code");
LogUtil.i("验证码", "yzm_logPath="+yzm_logPath+"yzm_logPath");
Bitmap yzm_imagview=HttpUtils.postImag(yzm_logPath,Sessionid);
handler.obtainMessage(MSG_SUCCESS, yzm_imagview).sendToTarget();
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}