|
|
@@ -81,6 +81,9 @@ import com.xzjmyk.pm.activity.volley.ArrayResult;
|
|
|
import com.xzjmyk.pm.activity.volley.FastVolley;
|
|
|
import com.xzjmyk.pm.activity.volley.Result;
|
|
|
import com.xzjmyk.pm.activity.volley.StringJsonArrayRequest;
|
|
|
+import com.xzjmyk.pm.activity.wxapi.ApiConfig;
|
|
|
+import com.xzjmyk.pm.activity.wxapi.ApiPlatform;
|
|
|
+import com.xzjmyk.pm.activity.wxapi.ApiUtils;
|
|
|
import com.xzjmyk.pm.activity.xmpp.CoreService;
|
|
|
import com.xzjmyk.pm.activity.xmpp.ListenerManager;
|
|
|
import com.xzjmyk.pm.activity.xmpp.listener.AuthStateListener;
|
|
|
@@ -186,6 +189,7 @@ public class MainActivity extends BaseActivity implements NetWorkObservable.NetW
|
|
|
private int mImStatus = AuthStateListener.AUTH_STATE_NOT;
|
|
|
private List<SignAutoLogEntity> signAutoLogEntity;
|
|
|
private List<SignAutoLogEntity> isendEntity;
|
|
|
+ private Boolean platform;
|
|
|
|
|
|
public int getmImStatus() {
|
|
|
return mImStatus;
|
|
|
@@ -609,7 +613,6 @@ public class MainActivity extends BaseActivity implements NetWorkObservable.NetW
|
|
|
}
|
|
|
});
|
|
|
PreferenceUtils.putInt(MainActivity.NEW_VERSION_RATING, 1);
|
|
|
- PushManager.resumeWork(MyApplication.getInstance());
|
|
|
}
|
|
|
|
|
|
private void setbg(float alpha) {
|
|
|
@@ -749,7 +752,12 @@ public class MainActivity extends BaseActivity implements NetWorkObservable.NetW
|
|
|
param.put("map", JSON.toJSONString(isendEntity));
|
|
|
LogUtil.prinlnLongMsg("isendEntity", JSON.toJSONString(isendEntity));
|
|
|
LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
|
- headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
+ if (platform) {
|
|
|
+ headers.put("Cookie", "JSESSIONID=" + ApiConfig.getInstance(ApiUtils.getApiModel()).getmApiBase().getCookie());
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
+ }
|
|
|
ViewUtil.httpSendRequest(this, url, param, mUserCheckHander, headers, LOG_SEND_REQUEST, null, null, "post");
|
|
|
}
|
|
|
|
|
|
@@ -797,7 +805,6 @@ public class MainActivity extends BaseActivity implements NetWorkObservable.NetW
|
|
|
mWorksFragment = (WorksFragment) getSupportFragmentManager().findFragmentByTag(TAG_NEARBY);
|
|
|
mGroupChatFragment = (GroupChatFragment) getSupportFragmentManager().findFragmentByTag(TAG_GROUP_CHAT);
|
|
|
mMeFragment = (MeFragment) getSupportFragmentManager().findFragmentByTag(TAG_ME);
|
|
|
-
|
|
|
mBusinessCircleFragment = (ContactFragment) getSupportFragmentManager().findFragmentByTag(TAG_BusinessCircle);
|
|
|
}
|
|
|
|
|
|
@@ -826,6 +833,8 @@ public class MainActivity extends BaseActivity implements NetWorkObservable.NetW
|
|
|
|
|
|
unWorkReadTV.setVisibility(CommonUtil.getSharedPreferencesBoolean(ct, com.xzjmyk.pm.activity.ui.erp.util.Constants.NEW_ME_TAG, false) ? View.GONE : View.VISIBLE);
|
|
|
Log.i("new_function_notice", new_function_notice + "");
|
|
|
+
|
|
|
+ platform = ApiUtils.getApiModel() instanceof ApiPlatform;
|
|
|
}
|
|
|
|
|
|
private void changeFragment(Fragment addFragment, String tag) {
|