博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
定义一些常亮
阅读量:4982 次
发布时间:2019-06-12

本文共 30050 字,大约阅读时间需要 100 分钟。

有时候网络地址不能写死,分为好几套,那么怎么半呢?改来改去?

no,像光大学习,用几个三门运算符就行了。

package com.chinaCEB.cebUtils;/** * 该类为自己维护的本应用用到的一些全局常量, 具体的局部变量应再定义一个静态内部类来保存。 Globle的首字母,类似于R文件 *  * @author wanghao */public class G {
public class HostConst {
/** *
         * public static final String APP_ADDR = HOST + ":" + PORT + "/" + APP_NAME + "/";         *          * public static final String HOST = "http://qa.fun-guide.mobi";         * public static final String PORT = "8080";         * public static final String APP_NAME = "LifePayment";         *          * public static final String HOST = "http://qa.fun-guide.mobi";         * public static final String PORT = "8080";         * public static final String APP_NAME = "LifePayment";         * public static final String APP_ADDR = HOST + ":" + PORT + "/" + APP_NAME + "/";         *          * 生产地址 http://www.funguide.com.cn/LifePayment/wap/IntroApp.html          * public static final String WAP_URL = "http://yaoyao.cebbank.com/LifePayment/wap/IntroApp.html";         * public static final String APP_ADDR = "http://yaoyao.cebbank.com/LifePayment";         *          *          * 测试地址 http://qa.fun-guide.mobi:8080/LifePayment/wap/IntroApp.html         * public static final String WAP_URL ="http://qa.fun-guide.mobi:8080/LifePayment/wap/IntroApp.html";         * public static final String APP_ADDR ="http://qa.fun-guide.mobi:8080/LifePayment";         *          * 光大         * public static final String WAP_URL ="202.99.20.162:8080/LifePayment/wap/IntroApp.html";         * public static final String APP_ADDR ="202.99.20.162:8080/LifePayment";         * 
*/ /** * 渠道号 andr_渠道名称 默认为andr_cebbank
* 360手机助手 360shop 安卓市场 anzhuo 豌豆荚 wandoujia 小米商店 xiaomi 安智市场 anzhi 应用宝 * yingyongbao 百度 baidu 机锋市场 jifeng 应用汇 yingyonghui 91市场 91shop 塞尚cpa1 * sscpa1 塞尚cpa2 sscpa2 塞尚cpa3 sscpa3 塞尚cpa4 sscpa4 塞尚cpa5 sscpa5 光大官网 * cebbank */ public static final String pla = "andr_ceb"; private static final boolean isQA = true; /** 指示是否要测试环境下的外网,是为true */ public static final boolean isQAWaiWang = true; // TODO 这个变量的作用 public static final String channelNo = "OWN"; /** 了解更多url **/// public static final String WAP_URL = isQA ? "https://124.127.251.160/LifePayment/wap/IntroApp.html" : "https://open.cebbank.com/LifePayment/wap/IntroApp.html"; public static final String WAP_URL = isQA ? "https://10.1.91.96/LifePayment/wap/IntroApp.html" : "https://open.cebbank.com/LifePayment/wap/IntroApp.html"; /** 隐私声明url **/ public static final String WAP_URL_DECLA = isQA ? (isQAWaiWang ? "http://124.127.251.160/htm/YYYSZC.html" : "http://10.1.91.96/htm/YYYSZC.html") : "http://open.cebbank.com/htm/YYYSZC.html";// public static final String WAP_URL_DECLA = isQA ? (isQAWaiWang ? "http://testopen.cebbank.com/htm/YYYSZC.html" : "http://124.127.251.160/htm/YYYSZC.html") : "http://open.cebbank.com/htm/YYYSZC.html"; /** 彩票地址 **/ public static final String WAP_URL_LOTTERY = isQA ? "https://124.42.83.34:6081/yaoyao_interface" : "https://211.147.5.55:81/yaoyao_interface"; /** 去领彩地址 **/ public static final String WAP_URL_LOTTERY_GET = isQA ? "https://test.lingcaibao.com/lingcai" : "https://wap.lingcaibao.com/lingcai"; /** 电影票公司地址 **/ public static final String WAP_URL_MOVIE = "http://m.gewara.com/touch/partner/cebbank/jointLogin.xhtml"; /** *
         * 前缀地址R         * 测试环境下,使用http://testopen.cebbank.com/LifePayment需要用外网访问         * 测试环境下,使用https://10.1.91.96/LifePayment需要用内网访问         * 
* */// public static final String APP_ADDR = isQA ? (isQAWaiWang ? "http://testopen.cebbank.com/LifePayment" : "http://10.1.91.96/LifePayment") : "https://open.cebbank.com/LifePayment"; public static final String APP_ADDR = isQA ? (isQAWaiWang ? "http://124.127.251.160/LifePayment" : "http://10.1.91.96/LifePayment") : "https://open.cebbank.com/LifePayment"; public static final String SOCKET = "Socket"; /** 版本更新接口 **/ public static final String REQ_IS_NEED_UPDATE = APP_ADDR + "/app/appVersionInfo.json"; /* 资讯模块 */ public static final String MODULE_INFO = "/info"; /** * 获取资讯信息接口 * * http://qa.fun-guide.mobi:8080/LifePayment/info/queryInfo.json? * infoType=0 * */ public static final String QUERY_INFO = APP_ADDR + MODULE_INFO + "/queryInfo.json"; /* 用户模块 */ public static final String MODULE_USER = "/user"; /** * 注册获取验证码 */ public static final String VALIDATE_VERIFY_CODE = APP_ADDR + MODULE_USER + "/validateVerifyCode.json"; /** * 校验验证码 */ public static final String SEND_VERIFY_CODE = APP_ADDR + MODULE_USER + "/sendVerifyCode.json"; /** * 用户注册接口 */ public static final String REGISTER = APP_ADDR + MODULE_USER + "/register.json"; /** * 用户登录接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/user/login.json?_pro=0&_pla=cmb_andr_1.0_uni_jifeng&_ver=1.0&_mt=MOTO,OLYMPUS,2.3.5&_uid=356381040709606&_ss=540x960&mobile=13552799004&pwd=E10ADC3949BA59ABBE56E057F20F883E         * http://qa.fun-guide.mobi:8080/LifePayment/user/login.json?_pro=0&_pla=cmb_andr_1.0_uni_jifeng&_ver=1.0&_mt=MOTO,OLYMPUS,2.3.5&_uid=356381040709606&_ss=540x960&mobile=18611974845&pwd=96e79218965eb72c92a549dd5a330112         * 
*/ public static final String LOGIN = APP_ADDR + MODULE_USER + "/login.json"; /** * 查询用户信息接口 */ public static final String QUERY_USER_INFO = APP_ADDR + MODULE_USER + "/queryUserInfo.json"; /** * 修改密码接口 */ public static final String CHANGE_PWD = APP_ADDR + MODULE_USER + "/changePwd.json"; /** * 找回密码接口 */ public static final String RETRIEVE_PASSWORD = APP_ADDR + MODULE_USER + "/changePwd.json"; /** * 1.5 用户常用缴费账户接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/user/queryPaymentItemRecords.json?categoryType=4&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String COMMON_USE_PAYMENT = APP_ADDR + MODULE_USER + "/queryPaymentItemRecords.json"; /** * 更改常用缴费账户信息 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/user/queryPaymentItemRecords.json?sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166&categoryType=2         * 
*/ public static final String UPDATE_PAYMENT_ITEM_RECORDS = APP_ADDR + MODULE_USER + "/updatePaymentItemRecords.json"; /** * 1.8删除常用缴费账户接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/user/deletePaymentItemRecords.json?sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166&recordsId=2         * 
*/ public static final String DELETE_PAYMENT_ITEM_RECORDS = APP_ADDR + MODULE_USER + "/deletePaymentItemRecords.json"; /** * 1.9 缴费提醒接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/user/paymentTips.json?sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String PAYMENT_TIPS = APP_ADDR + MODULE_USER + "/paymentTips.json"; /** * 1.10 更新缴费提醒接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/user/updatePaymentTips.json?sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 参数tipId=15表示彩票奖励提醒         * 
*/ public static final String UPDATE_PAYMENT_TIPS = APP_ADDR + MODULE_USER + "/updatePaymentTips.json"; /** 分享、关注成功之后回调接口 **/ public static final String SHARE_ATTENTION_CALLBACK = APP_ADDR + MODULE_USER + "/sendCashCouponByActivityType.json"; /* 缴费相关模块 */ public static final String MODULE_BILL = "/bill"; /** * 2.1 根据经纬度获取该城市下的缴费项目接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/bill/queryPaymentItemByCoordinate.json?latitude=40.0838649&longitude=116.36742886666667&categoryType=3&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String QUERY_PAYMENT_ITEM_BY_COORDINATE = APP_ADDR + MODULE_BILL + "/queryPaymentItemByCoordinate.json"; /** * 2.2 根据缴费类型查询城市接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/bill/queryCitiesByCategoryType.json?categoryType=2&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String QUERY_CITIES_BY_CATEGORY_TYPE = APP_ADDR + MODULE_BILL + "/queryCitiesByCategoryType.json"; /** * 2.3 根据城市查询缴费类型接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/bill/queryCategorysByCityCode.json?cityCode=512&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String QUERY_CATEGORYS_BY_CITY_CODE = APP_ADDR + MODULE_BILL + "/queryCategorysByCityCode.json"; /** * 2.4 根据业务类型和城市(查询)缴费项目接口 * 该接口主要用在常用缴费记录页面,当用户点击某常用缴费记录的时候,如果对应的记录的查询信息时完整的 * ,则可直接查询出起缴费账单,进入金额输入的页面;如果是信息是不完整的,需要进入金额输入页面,并将已经存在的信息回显给用户。 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/bill/queryPaymentItems.json?cityCode=010&categoryType=3&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String QUERY_PAYMENT_ITEMS = APP_ADDR + MODULE_BILL + "/queryPaymentItems.json"; /** * 2.4.1 在选择城市后,查询该城市下缴费项目时候调用 * */ public static final String QUERY_PAYMENT_ITEMS2 = APP_ADDR + MODULE_BILL + "/queryPaymentItems2.json"; /** * 2.5 缴费账单查询接口 该接口返回的数据主要在缴费金额填写的页面用到 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/bill/queryPaymentBills.json?cityCode=010&paymentItemId=24&billKey=123456789&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String QUERY_PAYMENT_BILLS = APP_ADDR + SOCKET + MODULE_BILL + "/queryPaymentBills.json"; /* 充值模块 */ public static final String MODULE_RECHARGE = "/recharge"; /** * 手机充值 查询缴费项目接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/recharge/queryMobileRechargePaymentItems.json?sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166&mobile=18611974845         * 
*/ public static final String QUERY_MOBILE_RECHARGE_PAYMENT_ITEMS = APP_ADDR + MODULE_RECHARGE + "/queryMobileRechargePaymentItems.json"; /* 订单支付相关模块 */ public static final String MODULE_ORDER = "/order"; /** * 3.1 创建订单接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/order/createPaymentOrder.json?startDate=2012-12-10 00:00:00&endDate=2012-12-12 00:00:00&pageSize=20&curPage=1&sortType=asc&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String CREATE_PAYMENT_ORDER = APP_ADDR + SOCKET + MODULE_ORDER + "/createPaymentOrder.json"; /** * 3.2 预约缴费接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/order/appointmentPay.json?orderNo=20130107154133-4DhvJ5&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String APPOINTMENT_PAY = APP_ADDR + MODULE_ORDER + "/appointmentPay.json"; /** * 3.3 取消预约缴费接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/order/cancelAppointmentPay.json?startDate=2012-12-10 00:00:00&endDate=2012-12-12 00:00:00&pageSize=20&curPage=1&sortType=asc&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String CANCEL_APPOINTMENT_PAY = APP_ADDR + MODULE_ORDER + "/cancelAppointmentPay.json"; /** * 3.4 支付回调接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/order/confirmPaySuccess.json?startDate=2012-12-10 00:00:00&endDate=2012-12-12 00:00:00&pageSize=20&curPage=1&sortType=asc&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String CONFIRM_PAY_SUCCESS = APP_ADDR + MODULE_ORDER + "/confirmPaySuccess.json"; /** * 3.5 支付状态查询接口 * * 参数sessionId和OrderId * *
         * http://qa.fun-guide.mobi:8080/LifePayment/order/queryPayStatus.json?startDate=2012-12-10 00:00:00&endDate=2012-12-12 00:00:00&pageSize=20&curPage=1&sortType=asc&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String QUERY_PAY_STATUS = APP_ADDR + SOCKET + MODULE_ORDER + "/queryPayStatus.json"; /** * 3.6 查询缴费记录接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/order/queryOrderRecords.json?startDate=2012-12-10 00:00:00&endDate=2012-12-12 00:00:00&pageSize=20&curPage=1&sortType=asc&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String QUERY_ORDER_RECORDS = APP_ADDR + MODULE_ORDER + "/queryOrderRecords.json"; /************************************** 我的充值卡模块 *********************************************/ public static final String MODEL_CARD = "/cards"; /** 充值卡获取记录 **/ public static final String QUERY_OBTAIN_CARD_RECORDS = APP_ADDR + MODEL_CARD + "/queryObtainCardsRecords.json"; /** 充值卡使用记录 **/ public static final String QUERY_CONSUME_CARD_RECORDS = APP_ADDR + MODEL_CARD + "/queryConsumeCardsRecords.json"; /** 获取手机充值卡充值金额接口 **/ public static final String QUERY_RECHARGE_AMOUNT = APP_ADDR + MODEL_CARD + "/queryRechargeAmount.json"; /** 手机充值创建订单 **/ public static final String CREATE_RECHARGE_CARD_ORDER_FORM = APP_ADDR + MODEL_CARD + "/createCardsOrder.json"; /** 手机充值,销账 **/ public static final String CONFIRM_RECHARGE = APP_ADDR + MODEL_CARD + "/recharge.json"; /************************************** 我的充值卡模块 END *********************************************/ /* 代金券模块 */ public static final String MODULE_COUPON = "/coupon"; /** * 获取代金券接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/coupon/obtainCoupon.json?sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String OBTAIN_COUPON = APP_ADDR + MODULE_COUPON + "/obtainCoupon.json"; /** * 查询代金券获取记录接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/coupon/queryObtainCouponRecords.json?startDate=2012-12-10 00:00:00&endDate=2012-12-12 00:00:00&pageSize=20&curPage=1&sortType=asc&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String QUERY_OBTAIN_COUPON_RECORDS = APP_ADDR + MODULE_COUPON + "/queryObtainCouponRecords.json"; /** * 查询代金券消费记录接口 * *
         * http://qa.fun-guide.mobi:8080/LifePayment/bill/queryPaymentItems.json?cityCode=010&categoryType=3&sessionId=032460dac8ca1788812d6b4abcfc393405c0ad0242dd8a452b0c8951f286b072b3e91ea23eae684ccd8833cd1ddfc1cd652949411b0023387a46836fa28c1166         * 
*/ public static final String QUERY_CONSUME_COUPON_RECORDS = APP_ADDR + MODULE_COUPON + "/queryConsumeCouponRecords.json"; /** * 更多设置接口 */ public static final String MORE_SETTING = APP_ADDR + MODULE_INFO + "/moreSetting.json"; /** * 祝福语or充值说明查询接口 */ public static final String RECHARGE_DESCRIPTION = APP_ADDR + MODULE_INFO + "/rechargeDescription.json"; /* 邀请模块 */ public static final String MODULE_RECOMMENDER = "/recommender"; /** * 邀请好友接口 */ public static final String RECOMMENDER = APP_ADDR + MODULE_RECOMMENDER + "/recommender.json"; /** * 祝福语or充值说明查询接口 */ public static final String INVITE_DESCRIPTION = APP_ADDR + MODULE_INFO + "/recommenderDescription.json"; /** * 我的邀请接口 */ public static final String MY_RECOMMENDER = APP_ADDR + MODULE_RECOMMENDER + "/myRecommender.json"; } /** * 银联支付相关的一些host信息,和常量信息。 * * @author wanghao * */ public static class UnionpayInfo {
/***************************************************************** * mMode参数解释: "00" - 启动银联正式环境 "01" - 连接银联测试环境 “99”QA测试环境 *****************************************************************/ public static final String mMode = HostConst.isQA ? "01" : "00";// GBB // 2.生产环境修改 public static final String TN_URL_01 = "http://222.66.233.198:8080/sim/gettn"; } public static class UserLoginInfo {
/** * 是否保存密码 */ public static final String PREF_TAG_IS_SAVE_PWD = "PREF_TAB_IS_SAVE_PWD"; /** * 用户唯一标识TAG */ public static final String PREF_TAG_UID = "PREF_TAG_UID"; /** * 用户 SESSION_ID TAG */ public static final String PREF_TAG_SESSION_ID = "PREF_TAG_SESSION_ID"; /** * 用户手机号(也就是用户名)TAG */ public static final String PREF_TAG_MOBILE = "PREF_TAG_MOBILE"; /** * 用户昵称 */ public static final String PREF_NICK_NAME = "PREF_NICK_NAME"; /** * 用户密码TAG */ public static final String PREF_TAG_PWD = "PREF_TAG_PWD"; /** * 用户描述 */ public static final String PREF_TAG_DESC = "PREF_TAG_DESC"; /** * 用户状态标识TAG 状态 0 停用 1 启用 */ public static final String PREF_TAG_STATUS = "PREF_TAG_STATUS"; /** * 用户创建时间 */ public static final String PREF_TAG_CREATED_AT = "PREF_TAG_CREATED_AT"; /** * 用户更新时间 */ public static final String PREF_TAG_UPDATE_AT = "PREF_TAG_UPDATE_AT"; /** * 记录用户是否已登录的状态 */ public static final String PREF_TAG_IS_ALREADY_LOGIN = "PREF_TAG_IS_ALREADY_LOGIN"; /** * 记录用户的代金券总额 */ public static final String PREF_TAG_COUPON_TOTAL_AMOUNT = "PREF_TAG_COUPON_TOTAL_AMOUNT"; /** * 记录用的充值卡总额 */ public static final String CARD_TOTAL_AMOUNT = "cards_total_amount"; /** * 新代金券数量 */ public static final String PREF_TAG_NEW_COUPON_AMOUNT = "PREF_TAG_NEW_COUPON_AMOUNT"; /** * 获取奖励类型 */ public static final String PREF_TAG_OBTAIN_FLAG = "PREF_TAG_OBTAIN_FLAG"; /** * 代金券获取总数 */ public static final String PREF_TAG_COUPON_OBTAIN_COUNT = "PREF_TAG_COUPON_OBTAIN_COUNT"; /** * 当月消费额 */ public static final String PREF_TAG_BILL_AMOUNT_WITH_CUR_MOTH = "PREF_TAG_BILL_AMOUNT_WITH_CUR_MOTH"; /** * 邀请活动开关 */ public static final String PREF_TAG_INVITE_ACTIVITY = "PREF_TAG_INVITE_ACTIVITY"; public static final String PREF_TAG_IS_FINISH_NOW = "PREF_TAG_IS_FINISH_NOW"; public static final String PREF_TAG_IS_FINISH_CLICK = "PREF_TAG_IS_FINISH_CLICK"; /** 彩票是否第一次进入 **/ public static final String PREF_TAG_LOTTERY_IS_FIRST = "PREF_TAG_LOTTERY_IS_FIRST"; /** 彩票是否有奖励 **/ public static final String PREF_TAG_LOTTERY_HAS_AWARD = "PREF_TAG_LOTTERY_HAS_AWARD"; /** 彩票是否有奖励图片显示 **/ public static final String PREF_TAG_LOTTERY_HAS_AWARD_SHOW = "PREF_TAG_LOTTERY_HAS_AWARD_SHOW"; /** 彩票所获取的OrderbyId **/ public static final String PREF_TAG_LOTTERY_ORDERID = "PREF_TAG_LOTTERY_ORDERID"; /** 彩票所获取的RewId **/ public static final String PREF_TAG_LOTTERY_REWID = "PREF_TAG_LOTTERY_REWID"; } public class HostRespCode {
public static final String RESP_0000 = "0000"; public static final String RESP_0001 = "0001"; public static final String RESP_0002 = "0002"; public static final String RESP_0003 = "0003"; public static final String RESP_0004 = "0004"; public static final String RESP_1000 = "1000"; public static final String RESP_1001 = "1001"; public static final String RESP_2000 = "2000"; public static final String RESP_2002 = "2002";// 超时,用户未登陆 public static final String RESP_3000 = "3000"; // 重复序列号 public static final String RESP_3001 = "3001"; // 支付失败 public static final String RESP_3005 = "3005"; // 销账失败 public static final String RESP_3006 = "3006"; // 处理中 public static final String RESP_3007 = "3007"; // 预约成功 public static final String RESP_3008 = "3008"; // 预约失败 public static final String RESP_3009 = "3009"; // 创建订单重复提交 public static final String RESP_4000 = "4000"; public static final String RESP_4012 = "4012"; public static final String RESP_7001 = "7001"; public static final String RESP_7007 = "7007"; /** 用户登录密码出错 **/ public static final String RESP_5002 = "5002"; } /** * MagusLoad Bundle需要用到的Tag * * @author wanghao * */ public class BundleTagOfMagusLoad {
/* bundel中保存loadCode 的key */ public static final String LOAD_CODE_TAG = "loadCodeTag"; /* bundel中保存下载返回的服务器结果的key */ public static final String RESULT_TAG = "result"; /** * 失败标识 */ public static final String REQUEST_FAILD = "REQUEST_FAILD"; /** * 服务器响应码Tag */ public static final String RESP_CODE_TAG = "RESP_CODE_TAG"; /** * 服务器响应消息Tag */ public static final String RESP_MSG_TAG = "RESP_MSG_TAG"; /** * 服务器响数据Json ModelTag */ public static final String RESP_REAL_RESULT_STR_TAG = "RESP_JSON_MODEL_TAG"; } public class MoreSettingModel {
/** 是否显示关注送代金券活动 */ public static final String IS_SHOW_ATTENTION = "isShowAttention"; /** 是否显示分享送代金券活动 **/ public static final String IS_SHOW_SHARE = "isShowShare"; /** 是否显示客服电话 **/ public static final String IS_SHOW_CSMOBILE = "isShowCSMobile"; /** 客服电话 **/ public static final String CSMOBILE = "csMobile"; } public class Security {
public static final String MAC_KEY = "1234567890"; public static final String URL_MAC_KEY = "2141029835"; // 格瓦拉 public static final String GEWALA_KEY = "BARhQ4ogYtXmVMS82nP3WJ7qDkMNBGc4"; } /** * 分享 */ public class Share {
public static final String TITLE = "瑶瑶缴费"; public static final String WEBPAGE_URL = HostConst.isQA ? "http://testopen.cebbank.com/newhtm/dl.html" : "http://open.cebbank.com/newhtm/dl.html"; } /** * 腾讯微博 */ public static class QQWeibo {
public static String APP_KEY = ""; public static String APP_SECRET = ""; public static final String OFFICIAL_WEIBO_NAME = "摇摇缴费"; public static final String QQ_WEIBO_OATH_OBJ_FILE_NAME = "QQ_WEIBO_OATH_OBJ_FILE_NAME"; } /** * 微信 */ public static class WeiXin {
public static String APP_ID = ""; public static String APP_KEY = ""; // public static final String APP_ID = "wxcad3ee9a4dacc453"; // public static final String APP_KEY = // "7470980bd039b0aa8fe0284e26a3e1d1"; } /** * 新浪微博 */ public static class SinaWeibo {
// public static final String APP_KEY = "3976636398"; //UID="3225838575" // public static final String APP_SECRET = // "075f8e4911879dfad64e69b7f5e85e8"; public static String APP_KEY = ""; public static String APP_SCREEN_NAME = "瑶瑶缴费"; public static String APP_SECRET = ""; public static final String REDIRECT_URI = "http://www.sina.com"; // 新支持scope:支持传入多个scope权限,用逗号分隔 public static final String SCOPE = "follow_app_official_microblog"; public static long OFFICIAL_WEIBO_ID = 0; public static final String OFFICIAL_SCREEN_NAME = "摇摇缴费测试账号"; public static final String SP_FILE_NAME = "sina_weibo_sp_file_name"; public static final String REDIRECT_URL = "http://www.fun-guide.com"; public static final String SINA_WEIBO_OATH_OBJ_FILE_NAME = "SINA_WEIBO_OATH_OBJ_FILE_NAME"; public static final String ACCESS_TOKEN_PREF_TAG = "ACCESS_TOKEN_PREF_TAG"; public static final String EXPIRES_IN_PREF_TAG = "EXPIRES_IN_PREF_TAG"; } /** * 对话框样式 * * @author zhengxiaoguang * */ public class DialogStyle {
public static final int ICON_DEFAULT = 0; public static final int ICON_ERROR = 1; public static final int ICON_CHANGE_CITY = 2; public static final int ICON_CHANGE_PASSWORD = 3; public static final int ICON_APPOINTMENT = 4; public static final int ICON_MOBILE_ERROR = 5; public static final int ICON_SUCCESS = 6; public static final String BTN_OK = "好的"; } /** * 提示语常量 * * @author zhengxiaoguang * */ public class Tips {
public static final String NETWORK_COMMON_ERROR = "网络请求错误,请稍后重试!"; } /** * 输入内容类型 * * @author zhengxiaoguang * */ public class InputContentType {
public static final String INPUT_MOBILE = "mobile"; public static final String INPUT_PWD = "pwd"; public static final String INPUT_NEW_PWD = "newPwd"; public static final String INPUT_CONFIRM_PWD = "confirmPwd"; public static final String INPUT_VERIFY_CODE = "verifyCode"; } /** * 订单状态 * * @author zhengxiaoguang * */ public class OrderStatusType {
public static final int APPOINTMENT = -1; // 状态废除 public static final int CREATE_ORDER = 0; // 创建订单 public static final int PAY_SUCCESS = 1; // 支付成功 public static final int PAY_FAILURE = 2; // 支付失败 public static final int WRITE_OFF_SUCCESS = 3; // 销账成功 public static final int WRITE_OFF_FAILLURE = 4; // 销账失败 public static final int UNKNOWN = 5; // 未知状态 public static final int WRITE_OFF_SUCCESS_THAN_WRITE_OFF_REVERSE = 6; // 销账成功后销账冲正 public static final int WRITE_OFF_SUCESS_THAN_PAY_REVERSE = 7; // 销账成功支付冲正 public static final int REFUND = 8; // 退款 public static final int APPOINTMENT_FAILLURE = 9; public static final int APPOINTMENT1_FAILLURE = 10; public static final int APPOINTMENT2_FAILLURE = 11; } /** *
     * ("1", "评分送代金券");      * ("2", "关注新浪微博");      * ("3", "关注腾讯微博");      * ("4", "分享到新浪微博");     * ("5", "分享到腾讯微博");      * ("6", "分享到微信");      * ("7", "注册送代金券");     *      * ("8", "评分送充值卡");      * ("9", "关注新浪微博送充值卡");      * ("10", "关注腾讯微博送充值卡");     * ("11", "分享到新浪微博送充值卡");      * ("12", "分享到腾讯微博送充值卡");      * ("13", "分享到微信送充值卡");      * ("14",  "注册送充值卡");     * 
* */ public class ActivityType {
public static final String GET_RECHARGE_CARD_BY_SCORE = "8"; /** 关注送充值卡 */ public static final String GET_RECHARGE_CARD_BY_ATTENT_SINA = "9"; public static final String GET_RECHARGE_CARD_BY_ATTENT_TENCENT = "10"; /** 分享送充值卡 **/ public static final String GET_RECHARGE_CARD_BY_SHARE_SINA = "11"; public static final String GET_RECHARGE_CARD_BY_SHARE_TENCENT = "12"; public static final String GET_RECHARGE_CARD_BY_SHARE_WEIXIN = "13"; public static final String GET_RECHARGE_CARD_BY_REGISTER = "14"; /** DES密钥key **/ public static final String KEY_SHARE_SECRET = "KEY_SHARE_SECRET"; } /*** * 新功能 * */ public class BundleTip {
/** 邀请好友新功能展示 **/ public static final String IS_NEW_BUNDLE_INVITES = "IS_NEW_BUNDLE_INVITES"; } /** 是否分享成功,用于数据传递 **/ public static ShareStatus shareStatus = ShareStatus.NO_SHARE; /** 分享成功后,回调类型 **/ public static String activityType = null; public enum ShareStatus { SHARE_SUCCESS, SHARE_FAIL, NO_SHARE, NO_INSTALL } public interface Extras {
/** 是否是安装后的第一次启动 */ String IS_INSTALLED_FIRST_START = "isInstalledFirstStart"; } public static class CreatePaymentOrder {
public static String randStr = ""; }}

转载于:https://www.cnblogs.com/caoxinyu/p/6647925.html

你可能感兴趣的文章
如何查找ORACLE中的跟踪文件
查看>>
SQL Server将一列的多行内容拼接成一行
查看>>
Spring Controller RequestMapping
查看>>
socket
查看>>
小程序 跳转问题 (来源见注明)
查看>>
JBPM4入门——9.自动节点单线执行
查看>>
//停止关联的进程
查看>>
SQL 生成公曆和農曆對照數據,公曆查找農曆和農曆查找公曆函數
查看>>
为何场效应管要用UGD与UGS(off)来比较判断夹断情况?
查看>>
.pem证书转xml格式字符串(.net)
查看>>
js构建ui的统一异常处理方案(二)
查看>>
三线程连续打印ABC
查看>>
ECharts
查看>>
初识网络爬虫
查看>>
git push 时不用每次都输入密码的方法
查看>>
54点提高PHP编程效率 引入缓存机制提升性能
查看>>
编解码-marshalling
查看>>
CDN原理
查看>>
java.lang.outofmemoryerror android
查看>>
coding
查看>>