|
@@ -28,6 +28,7 @@ import com.common.data.DateFormatUtil;
|
|
|
import com.common.data.JSONUtil;
|
|
import com.common.data.JSONUtil;
|
|
|
import com.common.data.StringUtil;
|
|
import com.common.data.StringUtil;
|
|
|
import com.common.system.DisplayUtil;
|
|
import com.common.system.DisplayUtil;
|
|
|
|
|
+import com.core.app.Constants;
|
|
|
import com.core.app.MyApplication;
|
|
import com.core.app.MyApplication;
|
|
|
import com.core.base.BaseActivity;
|
|
import com.core.base.BaseActivity;
|
|
|
import com.core.utils.CommonUtil;
|
|
import com.core.utils.CommonUtil;
|
|
@@ -115,7 +116,8 @@ public class CheckWagesActivity extends BaseActivity implements View.OnClickList
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void checkIsHavePassword() {
|
|
private void checkIsHavePassword() {
|
|
|
- HttpClient httpClient = new HttpClient.Builder("http://192.168.253.58:8080/ERP/").isDebug(true).build(true);
|
|
|
|
|
|
|
+ HttpClient httpClient = new HttpClient.Builder(Constants.IM_BASE_URL()).isDebug(true).build(true);
|
|
|
|
|
+// HttpClient httpClient = new HttpClient.Builder("http://192.168.253.58:8080/ERP/").isDebug(true).build(buildtrue);
|
|
|
httpClient.Api().send(new HttpClient.Builder()
|
|
httpClient.Api().send(new HttpClient.Builder()
|
|
|
.url("mobile/salary/checkPassword.action")
|
|
.url("mobile/salary/checkPassword.action")
|
|
|
.add("phone",mTel.getText().toString())
|
|
.add("phone",mTel.getText().toString())
|
|
@@ -226,8 +228,8 @@ public class CheckWagesActivity extends BaseActivity implements View.OnClickList
|
|
|
if (!CommonUtil.isNetWorkConnected(ct)){
|
|
if (!CommonUtil.isNetWorkConnected(ct)){
|
|
|
ToastMessage(getString(R.string.common_notlinknet));
|
|
ToastMessage(getString(R.string.common_notlinknet));
|
|
|
return;
|
|
return;
|
|
|
- }
|
|
|
|
|
- HttpClient httpClient = new HttpClient.Builder("http://192.168.253.58:8080/ERP/").isDebug(true).build(true);
|
|
|
|
|
|
|
+ }HttpClient httpClient = new HttpClient.Builder(Constants.IM_BASE_URL()).isDebug(true).build(true);
|
|
|
|
|
+// HttpClient httpClient = new HttpClient.Builder("http://192.168.253.58:8080/ERP/").isDebug(true).build(true);
|
|
|
httpClient.Api().send(new HttpClient.Builder()
|
|
httpClient.Api().send(new HttpClient.Builder()
|
|
|
.url("mobile/salary/verificationCode.action")
|
|
.url("mobile/salary/verificationCode.action")
|
|
|
// .header("Cookie","JSESSIONID="+CommonUtil.getSharedPreferences(BaseConfig.getContext(), "sessionId"))
|
|
// .header("Cookie","JSESSIONID="+CommonUtil.getSharedPreferences(BaseConfig.getContext(), "sessionId"))
|
|
@@ -243,7 +245,7 @@ public class CheckWagesActivity extends BaseActivity implements View.OnClickList
|
|
|
codeTimeOut = false;
|
|
codeTimeOut = false;
|
|
|
mWagesCodeBtn.setVisibility(View.GONE);
|
|
mWagesCodeBtn.setVisibility(View.GONE);
|
|
|
seconds_tv.setVisibility(View.VISIBLE);
|
|
seconds_tv.setVisibility(View.VISIBLE);
|
|
|
- mWagesCodeEt.setText(JSON.parseObject(o.toString()).getString("vecode")+"");
|
|
|
|
|
|
|
+// mWagesCodeEt.setText(JSON.parseObject(o.toString()).getString("vecode")+"");
|
|
|
isRun = true;
|
|
isRun = true;
|
|
|
startRun();
|
|
startRun();
|
|
|
}
|
|
}
|
|
@@ -294,7 +296,8 @@ public class CheckWagesActivity extends BaseActivity implements View.OnClickList
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void doSavePW() {
|
|
private void doSavePW() {
|
|
|
- HttpClient httpClient = new HttpClient.Builder("http://192.168.253.58:8080/ERP/").isDebug(true).build(true);
|
|
|
|
|
|
|
+ HttpClient httpClient = new HttpClient.Builder(Constants.IM_BASE_URL()).isDebug(true).build(true);
|
|
|
|
|
+// HttpClient httpClient = new HttpClient.Builder("http://192.168.253.58:8080/ERP/").isDebug(true).build(true);
|
|
|
httpClient.Api().send(new HttpClient.Builder()
|
|
httpClient.Api().send(new HttpClient.Builder()
|
|
|
.url("mobile/salary/changePassword.action")
|
|
.url("mobile/salary/changePassword.action")
|
|
|
.add("emcode", emcode)
|
|
.add("emcode", emcode)
|
|
@@ -324,8 +327,8 @@ public class CheckWagesActivity extends BaseActivity implements View.OnClickList
|
|
|
ToastMessage("验证码超时,请重新获取");
|
|
ToastMessage("验证码超时,请重新获取");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- // HttpClient httpClient = new HttpClient.Builder(Constants.IM_BASE_URL()).isDebug(true).build(true);
|
|
|
|
|
- HttpClient httpClient = new HttpClient.Builder("http://192.168.253.58:8080/ERP/").isDebug(true).build(true);
|
|
|
|
|
|
|
+ HttpClient httpClient = new HttpClient.Builder(Constants.IM_BASE_URL()).isDebug(true).build(true);
|
|
|
|
|
+// HttpClient httpClient = new HttpClient.Builder("http://192.168.253.58:8080/ERP/").isDebug(true).build(true);
|
|
|
httpClient.Api().send(new HttpClient.Builder()
|
|
httpClient.Api().send(new HttpClient.Builder()
|
|
|
.url("mobile/salary/getEmSalary.action")
|
|
.url("mobile/salary/getEmSalary.action")
|
|
|
.add("emcode", emcode)
|
|
.add("emcode", emcode)
|