version:
update:2021.03.19 fix:移除不需要的组件 add:
This commit is contained in:
@@ -34,6 +34,7 @@ import com.google.gson.Gson;
|
||||
import com.mjsheng.myappstore.BuildConfig;
|
||||
import com.mjsheng.myappstore.R;
|
||||
import com.mjsheng.myappstore.bean.UploadAppInfo;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.network.Network;
|
||||
import com.mjsheng.myappstore.network.api.UploadAppInfoApi;
|
||||
|
||||
@@ -1072,7 +1073,7 @@ public class ApkUtils {
|
||||
// Log.e("mjsheng", "json========" + jsonString);
|
||||
|
||||
UploadAppInfoApi uploadAppInfoApi = Network.getUploadAppInfoApi();
|
||||
uploadAppInfoApi.getUploadAppInfoApi(Configure.HTTP_KEY, Utils.getSerial(), jsonString)
|
||||
uploadAppInfoApi.getUploadAppInfoApi(URLAddress.HTTP_KEY, Utils.getSerial(), jsonString)
|
||||
.subscribeOn(io.reactivex.schedulers.Schedulers.io())
|
||||
.observeOn(io.reactivex.android.schedulers.AndroidSchedulers.mainThread())
|
||||
.subscribe(new io.reactivex.Observer<ResponseBody>() {
|
||||
|
||||
@@ -1,225 +0,0 @@
|
||||
package com.mjsheng.myappstore.utils;
|
||||
|
||||
|
||||
import com.mjsheng.myappstore.network.Network;
|
||||
|
||||
/**
|
||||
* @ClassName Config
|
||||
* @Description 客户端所有的配置项
|
||||
*/
|
||||
public class Configure {
|
||||
/**
|
||||
* 获取数据成功
|
||||
**/
|
||||
public static final int SUCCESS = 200;
|
||||
|
||||
//http tag
|
||||
public static final String HTTP_TAG_APP_RECOMMEND = "app_recommend";
|
||||
public static final String HTTP_TAG_SEARCH = "search";
|
||||
public static final String HTTP_TAG_CATEGORY_TABLE = "category_table";
|
||||
public static final String HTTP_TAG_RANKING_APPS = "ranking_apps";
|
||||
|
||||
|
||||
public static final String HTTP_TYPE_BRAND = "brand品牌";
|
||||
public static final String HTTP_TYPE_PROJECT = "project专题";
|
||||
public static final String HTTP_TYPE_HOMEPAGE = "homepage推荐";
|
||||
public static final String RANKING_TYPE_UPDATE = "update更新";
|
||||
public static final String RANKING_TYPE_APPSOTRE = "appstore应用商店弹窗";
|
||||
public static final String RANKING_TYPE_MOREAPP = "subjectmore更多应用";
|
||||
public static final String HTTP_KEY = "YTM3YTAxNTJmMmZmNzkyM2E2YzIwZjlhZTc0NzNmMGI=";
|
||||
|
||||
private static final String HTTP_TAG_HEAD = "http://www.uiapi.tuiinfo.com/index.php/";
|
||||
// private static final String HTTP_TAG_HEAD_NEW = "http://www.jiaoguanyi.cn/api/";
|
||||
private static final String HTTP_TAG_HEAD_NEW = Network.ROOT_URL;
|
||||
|
||||
|
||||
// 应用更新接口 通过包名获取app信息 post baoming
|
||||
public static final String HTTP_TAG_APPBAOMING = HTTP_TAG_HEAD + "App";
|
||||
|
||||
|
||||
// 应用详情 通过包名获取app信息 post baoming
|
||||
// public static final String HTTP_TAG_APPDETAILS= HTTP_TAG_HEAD + "Appdetails";
|
||||
public static final String HTTP_TAG_APPDETAILS = HTTP_TAG_HEAD_NEW + "app/index";
|
||||
|
||||
|
||||
// 获取子系统分类
|
||||
public static final String HTTP_TAG_SYSTEMTYPE = HTTP_TAG_HEAD_NEW + "category/index";
|
||||
|
||||
// 获取子系统分类应用
|
||||
// public static final String HTTP_TAG_SYSTEMAPP = HTTP_TAG_HEAD + "Xitong/zixitongapp?zxtid=";
|
||||
public static final String HTTP_TAG_SYSTEMAPP = HTTP_TAG_HEAD_NEW + "category/app";
|
||||
|
||||
// 推荐页信息
|
||||
//改为最新上架 所有的应用
|
||||
// public static final String HTTP_TAG_HOMEPAGE_URL = HTTP_TAG_HEAD + "Tuij";
|
||||
public static final String HTTP_TAG_HOMEPAGE_URL = HTTP_TAG_HEAD_NEW + "recommend/index";
|
||||
|
||||
|
||||
// 排行页贴心推荐
|
||||
// public static final String HTTP_TAG_RECOMM_URL = HTTP_TAG_HEAD + "Top";
|
||||
public static final String HTTP_TAG_RECOMM_URL = HTTP_TAG_HEAD_NEW + "rank/index";
|
||||
|
||||
// 推荐页最新上架
|
||||
public static final String HTTP_TAG_LATEST_URL = HTTP_TAG_HEAD_NEW + "recommend/newreleases";
|
||||
// public static final String HTTP_TAG_LATEST_URL = HTTP_TAG_HEAD + "Tuij/gengduo?tj=1";
|
||||
|
||||
// 推荐页热门应用
|
||||
public static final String HTTP_TAG_HOTS_URL = HTTP_TAG_HEAD_NEW + "recommend/hot";
|
||||
// public static final String HTTP_TAG_HOTS_URL = HTTP_TAG_HEAD + "Tuij/gengduo?tj=2";
|
||||
|
||||
|
||||
// 推荐页首页专题品牌推荐
|
||||
public static final String HTTP_TAG_HOME_PAGE_URL = HTTP_TAG_HEAD + "Tuij/pztj";
|
||||
|
||||
// 品牌页信息
|
||||
public static final String HTTP_TAG_BRAND_URL = HTTP_TAG_HEAD_NEW + "brand/index";
|
||||
|
||||
// 品牌详情页
|
||||
// public static final String HTTP_TAG_BRAND_DETAILS_URL = HTTP_TAG_BRAND_URL + "/pinpaiapp?pid=";
|
||||
public static final String HTTP_TAG_BRAND_DETAILS_URL = HTTP_TAG_HEAD_NEW + "brand/app";
|
||||
|
||||
// 专题页信息
|
||||
public static final String HTTP_TAG_PROJECT_URL = HTTP_TAG_HEAD_NEW + "subject/index";
|
||||
|
||||
// 专题详情页
|
||||
// public static final String HTTP_TAG_PROJECT_DETAILS_URL = HTTP_TAG_PROJECT_URL + "/zhuantiapp?ztid=";
|
||||
public static final String HTTP_TAG_PROJECT_DETAILS_URL = HTTP_TAG_HEAD_NEW + "subject/app";
|
||||
|
||||
|
||||
// 搜索页面
|
||||
public static final String HTTP_TAG_SEARCH_URL = HTTP_TAG_HEAD_NEW + "search/index";
|
||||
// public static final String HTTP_TAG_SEARCH_URL = HTTP_TAG_HEAD + "Soea";
|
||||
|
||||
|
||||
// 下载接口 根据包名匹配 请求后更新下载次数
|
||||
// public static final String HTTP_TAG_DOWNLOAD_URL = HTTP_TAG_HEAD + "Down?baoming=";
|
||||
public static final String HTTP_TAG_DOWNLOAD_URL = HTTP_TAG_HEAD_NEW + "count/index";
|
||||
|
||||
public static final String SEND_DOWNLOAD_FILE_INFO = HTTP_TAG_HEAD_NEW + "app/downloadApp";
|
||||
|
||||
// app详细窗口 相关推荐接口
|
||||
public static final String HTTP_TAG_APPDETAIL_URL = HTTP_TAG_HEAD + "Tuij/xiang?aid=";
|
||||
|
||||
|
||||
// 子系统弹窗接口
|
||||
public static final String HTTP_TAG_APPSTORE_URL = HTTP_TAG_HEAD + "Xitong/zixitongapp?zxtid=";
|
||||
|
||||
// 用户定位接口 post user_name/user_position
|
||||
public static final String HTTP_TAG_POSITION = HTTP_TAG_HEAD + "Position";
|
||||
|
||||
// 获取注册验证码接口 post num
|
||||
public static final String HTTP_TAG_SMSCODE = HTTP_TAG_HEAD + "User/code";
|
||||
|
||||
|
||||
// 用户注册接口 post user_name/user_pwd
|
||||
public static final String HTTP_TAG_USERREGISTER = HTTP_TAG_HEAD + "User";
|
||||
|
||||
|
||||
// 用户登录接口 post user_name/user_pwd
|
||||
public static final String HTTP_TAG_USERLOG = HTTP_TAG_HEAD + "User/tell";
|
||||
|
||||
|
||||
// 修改密码接口 post user_name/user_pwd
|
||||
public static final String HTTP_TAG_CHANGEPWD = HTTP_TAG_HEAD + "User/mima";
|
||||
|
||||
|
||||
// 重置密码接口 post user_name/user_pwd
|
||||
public static final String HTTP_TAG_RESETPWD = HTTP_TAG_HEAD + "User/pwd";
|
||||
|
||||
|
||||
// 家长密码修改接口 post user_name/user_pwd
|
||||
public static final String HTTP_TAG_PARENTPWD = HTTP_TAG_HEAD + "User/jiachang";
|
||||
|
||||
|
||||
// 家长密码找回接口 post user_name/user_pwd
|
||||
public static final String HTTP_TAG_FORGETPARENTPWD = HTTP_TAG_HEAD + "User/zhjcmm";
|
||||
|
||||
|
||||
// 宝宝信息接口 post user_name
|
||||
public static final String HTTP_TAG_BABYINFO = HTTP_TAG_HEAD + "Baob";
|
||||
|
||||
|
||||
// 家长信箱接口 post user_name/xin_file
|
||||
public static final String HTTP_TAG_PARENTMAIL = HTTP_TAG_HEAD + "Xin";
|
||||
|
||||
|
||||
// 学习日志上传接口 post user_name/log_file
|
||||
public static final String HTTP_TAG_LEARNLOG = HTTP_TAG_HEAD + "Log";
|
||||
|
||||
|
||||
// 学习日志下载接口 post user_name
|
||||
public static final String HTTP_TAG_LEARNLOG_DOWNLOAD = HTTP_TAG_HEAD + "Log/dow";
|
||||
|
||||
|
||||
// 学习日志图片上传 post log_head 文件
|
||||
public static final String HTTP_TAG_UPLOADIMAGE = HTTP_TAG_HEAD + "Log/upimg";
|
||||
|
||||
|
||||
// 获取评论
|
||||
// public static final String HTTP_TAG_GET_APP_COMMENTS_REQ = HTTP_TAG_HEAD + "Pinglun/pls";
|
||||
public static final String HTTP_TAG_GET_APP_COMMENTS_REQ = HTTP_TAG_HEAD_NEW + "score/get";
|
||||
|
||||
// 提交评论
|
||||
// public static final String HTTP_TAG_POST_APP_COMMENTS_REQ = HTTP_TAG_HEAD + "Pinglun";
|
||||
public static final String HTTP_TAG_POST_APP_COMMENTS_REQ = HTTP_TAG_HEAD_NEW + "score/set";
|
||||
|
||||
// 激活码接口
|
||||
public static final String HTTP_TAG_USERCODE = HTTP_TAG_HEAD + "Jicode";
|
||||
|
||||
|
||||
// 更新接口
|
||||
public static final String HTTP_TAG_UPDATE = HTTP_TAG_HEAD + "Upapp";
|
||||
|
||||
// 课程表接口 post user_name
|
||||
public static final String HTTP_TAG_COURSETAB = HTTP_TAG_HEAD + "Course";
|
||||
|
||||
|
||||
// 积分上传接口
|
||||
public static final String HTTP_TAG_SETPOINT = HTTP_TAG_HEAD + "/Jifen";
|
||||
|
||||
// 积分获取接口
|
||||
public static final String HTTP_TAG_GETPOINT = HTTP_TAG_HEAD + "Jifen/get";
|
||||
|
||||
|
||||
public static final String HTTP_TAG_FIRST = HTTP_TAG_HEAD_NEW + "lock/index";
|
||||
|
||||
public static final String SEND_DEVICES = HTTP_TAG_HEAD_NEW + "Mac/getMac";
|
||||
|
||||
public static final String SEND_USEDTIME = HTTP_TAG_HEAD_NEW + "Applog/getAppLog";
|
||||
|
||||
public static final String CHECK_UPDATE = HTTP_TAG_HEAD_NEW + "Silent/silent";
|
||||
//更新接口
|
||||
public static final String GET_DEVICES_TAGS = HTTP_TAG_HEAD_NEW + "Sn/getSnTag";
|
||||
//获取设备标签
|
||||
public static final String DELETE_GEDEVICE_ALIAS = HTTP_TAG_HEAD_NEW + "Sn/deleteAliases";
|
||||
//删除Aliases
|
||||
public static final String SET_HOMEPAG_TAG = HTTP_TAG_HEAD_NEW + "Label";
|
||||
//浏览器书签主页设置
|
||||
public static final String SET_APPINSIDEWEB = HTTP_TAG_HEAD_NEW + "Appground";
|
||||
//app内部网页管控
|
||||
public static final String SET_BROWSER_LIST = HTTP_TAG_HEAD_NEW + "browser";
|
||||
//浏览器黑白名单地址
|
||||
public static final String SET_WHITE_PACKAGE_LIST = HTTP_TAG_HEAD_NEW + "firmware/index";
|
||||
//应用白名单
|
||||
public static final String GET_HIDE_DESKTOPICON = HTTP_TAG_HEAD_NEW + "Icon";
|
||||
//获取隐藏桌面图标
|
||||
public final static String NET_AND_LAUNCH_API = HTTP_TAG_HEAD_NEW + "automatic/get";
|
||||
//获取应用升级自启
|
||||
public static final String GET_STUDENTS_INFO = HTTP_TAG_HEAD_NEW + "Sn/getStudent";
|
||||
//通过sn获取信息
|
||||
public static final String SEND_SCREENSHOT = HTTP_TAG_HEAD_NEW + "Screenshot/addImg";
|
||||
//上传截图
|
||||
// public static final String UPDATE_DEVICEINFO = HTTP_TAG_HEAD_NEW + "Mac/getInfo";
|
||||
//上传我的设备
|
||||
public final static String GET_LOCK_SCREEN_STATE = HTTP_TAG_HEAD_NEW + "Sn/getSnScreen";
|
||||
//获取霸屏状态
|
||||
public final static String GET_DESKTOP = HTTP_TAG_HEAD_NEW + "Sn/getSnDesktop";
|
||||
//获取默认桌面升级
|
||||
public final static String GET_SN_TIME_CONTROL = HTTP_TAG_HEAD_NEW + "Sn/getSnTimeControl";
|
||||
//获取时间管控
|
||||
public final static String GET_TOP_APP_CONTROL = HTTP_TAG_HEAD_NEW + "Sn/getSnAppControl";
|
||||
//获取顶部app管控
|
||||
public final static String GET_SN_APP_TEST = HTTP_TAG_HEAD_NEW + "Sn/getSnAppTest";
|
||||
//获取测试app
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user