首页动态栏目接口修改、大数据登录
This commit is contained in:
parent
e388d3d748
commit
6e2954f5c4
@ -9,11 +9,13 @@ import com.sucstepsoft.cm_utils.constant.PathConfig;
|
||||
*/
|
||||
public class BaseUrlApi {
|
||||
|
||||
public static final String IP_URL = "http://v3.xzszwhy.cn/";/* 测试IP */
|
||||
// public static final String IP_URL = "http://v3.xzszwhy.cn/";/* 测试IP */
|
||||
public static final String IP_URL = "https://www.xzszwhy.cn/";/* 测试IP */
|
||||
// public static final String IP_URL = "http://192.168.0.120:8081/";/* 测试IP */
|
||||
|
||||
// public static final String BASE_SYSTEM_IP = "http://192.168.0.120:8081/xzszwhy/";/*测试IP*/
|
||||
public static final String BASE_SYSTEM_IP = "http://v3.xzszwhy.cn/xzszwhy/";/*正式IP*/
|
||||
// public static final String BASE_SYSTEM_IP = "http://v3.xzszwhy.cn/xzszwhy/";/*正式IP*/
|
||||
public static final String BASE_SYSTEM_IP = "https://www.xzszwhy.cn/xzszwhy/";/*正式IP*/
|
||||
|
||||
public static final String PROJECT_NAME = "app/";
|
||||
public static final String BASE_URL = BASE_SYSTEM_IP;
|
||||
|
@ -302,6 +302,8 @@ public class MainActivity extends BaseActivity {
|
||||
UserLgUtils.setName(baseUserInfo.getName());
|
||||
UserLgUtils.setUserName(baseUserInfo.getUsername());
|
||||
UserLgUtils.setPhone(baseUserInfo.getPhone());
|
||||
String params = mActivity.getResources().getString(R.string.big_data_str, "USER", baseUserInfo.getUserId(), "");
|
||||
bigDataRead(params);
|
||||
}
|
||||
}
|
||||
|
||||
@ -370,7 +372,7 @@ public class MainActivity extends BaseActivity {
|
||||
private void startDownloadApk() {
|
||||
ToastUtils.showShort("开始下载,请在通知栏查看下载进度");
|
||||
Intent intent = new Intent(mActivity, DownloadService.class);
|
||||
intent.putExtra(Constants.APK_DOWNLOAD_URL, BaseUrlApi.APP_DOWNLOAD_URL+UserLgUtils.getAppVersionPathCode());
|
||||
intent.putExtra(Constants.APK_DOWNLOAD_URL, BaseUrlApi.APP_DOWNLOAD_URL + UserLgUtils.getAppVersionPathCode());
|
||||
startService(intent);
|
||||
}
|
||||
|
||||
|
@ -248,7 +248,7 @@ public class HomeFragment extends BaseFragment {
|
||||
private void getMainNewsTab() {
|
||||
RetrofitManager.getInstance()
|
||||
.create(HomeApi.class)
|
||||
.getMainNewsTab()
|
||||
.getMainNewsTab("0")
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<List<NewsTabBean>>() {
|
||||
|
@ -116,8 +116,8 @@ public interface HomeApi {
|
||||
* 首页动态列表
|
||||
*/
|
||||
@Headers({"base_url_name:news", "Content-Type:application/json", "Accept:application/json", "need_area:true"})
|
||||
@GET("app/newsdirectories/list/areaplate/release")
|
||||
Observable<List<NewsTabBean>> getMainNewsTab();
|
||||
@GET("app/newsdirectories/listsub/areaauth/release/{pId}")
|
||||
Observable<List<NewsTabBean>> getMainNewsTab(@Path("pId")String pId);
|
||||
|
||||
/**
|
||||
* 获取新闻子类别
|
||||
|
Loading…
Reference in New Issue
Block a user