byte[] responseBody) {

hasSend = true;

Logger。json(new String(responseBody));

try {

BasicResponse response = new BasicResponse(

responseBody)。getResult();

if (response。isSuccess()) {

btnGetVerify。setText("已发送");

;

sms = new SmsCodeCount(60000, 1000);

sms。start();

T。ss("已发送");

} else {

T。ss(response。getMsg());

btnGetVerify。setText("发送失败");

btnGetVerify。setEnabled(true);

}

} catch (JSONException e) {

e。printStackTrace();

}

}

}

获取手机号码、短信验证码数据,调接口传给后台验证短信验证码是否正确。

private void checkVerifyCode() {

HashMap<String, String> map = new HashMap<String, String>();

map。put("custMobile", etPhone。getText()。toString()。trim());

map。put("msgCode", etphoneVerify。getText()。toString());

if (action。equals(ACTION_FORGET_LOGIN_PWD)) {

map。put("codeType", "02");

map。put("custId", User。uId);

} else if (action。equals(ACTION_FORGET_PAY_PWD)) {

map。put("codeType", "03");

map。put("custId", User。uId);

} else {

map。put("codeType", "01");

}

MyHttpClient。postWithoutDefault(this, Urls。CHECK_VERIFY, map,

new JsonHttpResponseHandler() {

@Override

public void onSuccess(int statusCode, Header[] headers,

JSONObject response) {

super。onSuccess(statusCode, headers, response);

Logger。json(response。toString());

try {

JSONObject obj = response。getJSONObject("REP_BODY");

if (obj。getString(来:自[优.尔]论,文-网www.chuibin.com +QQ752018766-

com。lk。td。pay。beans。Entity。RSP_COD)。equals(

com。lk。td。pay。beans。Entity。RSP_SUCC)) {

gotoNext();

finish();

} else {

T。sl("" + obj。optString("RSPMSG"));

}

} catch (JSONException e) {

e。printStackTrace();

}

}

}

验证码正确后跳转到设置登录密码页面,并传数据给后台保存信息。

上一篇:Android一元淘宝app的设计+源代码
下一篇:安卓的会议平台设计+源代码

基于Android的电子拍卖系统设计与开发

JSP企业产品管理与展示平台设计与开发

zabbix程序能力训练测试平...

基于android通讯与游戏的手...

MAG3110无线智能停车平台中...

Android手机考勤平台的设计与实现

基于android的环境信息管理系统设计

个案管理茬老年糖尿病患...

新疆农林高校學生昆虫生...

激光模拟训练器材国内外研究现状

发酵米粉优势菌株的发酵特性研究

日语论文中日酒文化对比研究

大淘宝网的虚假交易研究

淮安市高校足球运动损伤问卷调查表

肢体语言在小学英语教学中的应用浅谈

2021年什么行业赚钱,适合...

浅谈农村大气环境保护的制度构建【1868字】