|
|
@@ -464,9 +464,11 @@ public class ViewUtil {
|
|
|
enuu = "";
|
|
|
}
|
|
|
CommonUtil.setSharedPreferences(ct, "erp_uu", enuu);
|
|
|
- LogUtil.d("ERPLOGIN", "erp_uu1:" + enuu);
|
|
|
- LogUtil.d("ERPLOGIN", "erp_uu2:" + CommonUtil.getSharedPreferences(MyApplication.getInstance(), "erp_uu"));
|
|
|
CommonUtil.setSharedPreferences(ct, "erp_masterId", erpMasterId);
|
|
|
+ //添加获取报表地址
|
|
|
+ String extrajaSperurl = JSONUtil.getText(result,"EN_EXTRAJASPERURL");
|
|
|
+ LogUtil.i("gong","login extrajaSperurl="+extrajaSperurl);
|
|
|
+ CommonUtil.setSharedPreferences(ct, "extrajaSperurl", extrajaSperurl);
|
|
|
CommonUtil.setSharedPreferences(ct, "erp_login", true);
|
|
|
CommonUtil.setSharedPreferences(ct, "erp_emname", String.valueOf(dataMap.get("emname")));
|
|
|
}
|
|
|
@@ -1106,21 +1108,16 @@ public class ViewUtil {
|
|
|
public static void LoginERPTask(Context ct, final Handler handler, final int what) {
|
|
|
final String url = CommonUtil.getAppBaseUrl(ct) + "mobile/login.action";
|
|
|
String master = CommonUtil.getSharedPreferences(ct, "erp_master");
|
|
|
- String phone = CommonUtil.getSharedPreferences(ct, "user_phone");
|
|
|
- String password = CommonUtil.getSharedPreferences(ct, "user_password");
|
|
|
String accountToken = CommonUtil.getSharedPreferences(ct, Constants.CACHE.ACCOUNT_CENTER_TOKEN);
|
|
|
final Map<String, String> params = new HashMap<String, String>();
|
|
|
|
|
|
params.put("token", accountToken);
|
|
|
-// params.put("username", phone);
|
|
|
-// params.put("password", password);
|
|
|
params.put("master", master);
|
|
|
ThreadPool.getThreadPool().addTask(new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
boolean isNetHas = NetUtils.isNetWorkConnected(MyApplication.getInstance());
|
|
|
if (isNetHas) {
|
|
|
- /** @注释:处理网络请求返回结果 */
|
|
|
String result = getDataFromServer(url, params, "post");
|
|
|
if (result != null) {
|
|
|
if (JSONUtil.validate(result)) {
|