123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- package com.fxy.net;
- import android.content.Context;
- import com.fxy.baselibrary.language.other.CommSharedUtil;
- import com.fxy.BuildConfig;
- import com.fxy.constant.SPCache;
- /**
- * 服务端请求地址常量类
- * @author James.Jiang
- * @date 2020-01-05
- */
- public class Urls {
- //oss 文件地址
- //public static final String OSS_HOST = BuildConfig.OSS_HOST;
- public static final String getEnv(){
- return BuildConfig.DEBUG ? "uat":"prod";
- }
- public static final String getOssHostPath(Context context){
- SPCache spCache = SPCache.getInstance(context);
- String resource_prefix = spCache.getResourcePrefix();
- if (resource_prefix.isEmpty()){
- resource_prefix = BuildConfig.DEBUG ? "uat/fxy":"prod/fxy";
- }
- return spCache.getResourceHost()+"/"+resource_prefix;
- }
- //获取头程
- public static String getFmsHostUrl(Context context){
- return getOssHostPath(context)+"/pda/apk/fxyHost.json";
- }
- /**
- * 服务地址
- * @return
- */
- public static String getServiceAddress(Context context){
- return CommSharedUtil.getInstance(context).getString("service_address");
- }
- /**
- * 获取版本更新地址
- * @return
- */
- public static final String getVersionUpdate(Context context){
- return getOssHostPath(context)+"/pda/apk/version_update.json" ;
- }
- /**
- * 获取扫码设置
- * @return
- */
- public static String getScanSetting(Context context){
- return getOssHostPath(context)+"/pda/scan/setScan.json" ;
- }
- //登录接口
- public static final String LOGIN = "/pda/Login/doLogin";
- //退出登陆
- public static final String LOGIN_OUT = "/pda/Login/LoginOut";
- //记录失败日志
- public static final String RECORD_LOG = "/pda/Basics/recordLog";
- //获取用户信息
- public static final String GET_USER_INFO = "/pda/User/getUserInfo";
- //检测服务是否可用
- public static final String CHECK_SERVICE = "/pda/Basics/index";
- //获取蓝牙配置
- public static final String GET_BLUES = "/pda/Basics/getBlues";
- /*返修易 -- start*/
- public static final String FXY_CHECK_PALLET = "/pda/inbound/scanPallet";
- public static final String FXY_PUT_IN = "/pda/inbound/scanTracking";
- //关闭托盘
- public static final String FXY_CLOSE_PALLET = "/pda/inbound/closePallet";
- // 获取出库单数据
- public static final String FXY_GET_OUTBOUND = "/pda/outbound/scanOutbound";
- // 删除
- public static final String FXY_ADD_OUTBOUND = "/pda/outbound/scanDoPallet";
- // 删除
- public static final String FXY_DEL_OUTBOUND = "/pda/outbound/scanDoPallet";
- //完成装柜
- public static final String FXY_FINISH_LOAD = "/pda/Outbound/finishLoad";
- //扫描跟踪单号
- public static final String FXY_SCAN_PALLET_TRACKING = "/pda/inbound/scanPalletTracking";
- /*返修易 -- end*/
- /*
- 以下是头程
- */
- //获取搬运小组
- public static final String FMS_GET_HOST = "/pda/basics/getHost";
- //获取仓库
- public static final String FMS_GET_WAREHOUSE = "/pda/basics/getWarehouse";
- //获取搬运小组
- public static final String FMS_DOCKER_LIST = "/pda/Inbound/getDocker";
- //获取搬运小组
- public static final String FMS_CHECK_ORDER = "/pda/Inbound/checkOrder";
- //添加理货
- public static final String FMS_ADD_RECEIVE = "/pda/Inbound/receive";
- //上架
- public static final String FMS_PUT_AWAY = "/pda/Inbound/PutAway";
- //获取待检查列表
- public static final String FMS_GET_WAIT_CHECK_LIST = "/pda/Inbound/getWaitCheckList";
- //获取产品列表
- public static final String FMS_GET_PRODUCTS = "/pda/Inbound/getProducts";
- //获取商品列表
- public static final String FMS_GET_PACKAGE_GOODS = "/pda/Inbound/getPackageGoods";
- public static final String FMS_CHECK_OUTBOUND = "/pda/Outbound/checkOutbound";
- //查验货物
- public static final String FMS_FINISH_CHECK = "/pda/Inbound/finishCheck";
- //
- public static final String FMS_GET_ISSUE_LIST = "/pda/Inbound/getIssueList";
- //获取完成
- public static final String FMS_ADD_STORAGE = "/pda/Outbound/storage";
- //获取完成
- public static final String FMS_FINISH_STORAGE = "/pda/Outbound/finishStorage";
- //撤销装柜
- public static final String FMS_CANCEL_STORAGE = "/pda/Outbound/cancelStorage";
- //检查单号信息
- public static final String FMS_OUTBOUND_CHECK_ORDER = "/pda/Outbound/checkOrder";
- //
- public static final String FMS_GET_OUTBOUND_INFO = "/pda/Outbound/getOutboundCount";
- public static final String FMS_OUTBOUND_DETAIL = "/pda/Outbound/getOutboundDetail";
- public static final String FMS_UPLOAD_SIGN = "/pda/User/uploadSign";
- //获取搬运小组
- public static final String FMS_LOCATION_LIST = "/pda/Inbound/getPutAwayLocation";
- }
|