|
|
@@ -744,7 +744,7 @@ public class ViewUtil {
|
|
|
/**
|
|
|
* @注释:ERP自动登录
|
|
|
*/
|
|
|
- public static void AutoLoginErp(Context ct, Handler handler) {
|
|
|
+ public static void AutoLoginErp(Context ct) {
|
|
|
Log.i("LoginErp", "自动登录...");
|
|
|
if (!StringUtils.isEmpty(Constants.getAppBaseUrl(ct))) {
|
|
|
ViewUtil.ct=ct;
|
|
|
@@ -756,13 +756,13 @@ public class ViewUtil {
|
|
|
Log.i("LoginErp", "master..." + master);
|
|
|
Log.i("LoginErp", "phone..." + phone);
|
|
|
Log.i("LoginErp", "password..." + password);
|
|
|
- LoginERPTask(ct, handler, url, master, phone, password);
|
|
|
+ LoginERPTask(ct,url, master, phone, password);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
// 登录ERP
|
|
|
- public static void LoginERPTask(Context ct, Handler mhandler, String url, String master, String username, String password) {
|
|
|
+ public static void LoginERPTask(Context ct, String url, String master, String username, String password) {
|
|
|
url = url + "mobile/login.action";
|
|
|
Map<String, Object> params = new HashMap<String, Object>();
|
|
|
params.put("username", username);
|