From a44f2c3b5db92069ea2813ecf8cb12a6ab3b2203 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 19 五月 2022 17:04:07 +0800 Subject: [PATCH] 管理员权限雁验证 --- app/src/main/java/com/yeshi/makemoney/app/entity/config/SystemConfigKey.java | 62 ++++++++++++++++++++++--------- 1 files changed, 44 insertions(+), 18 deletions(-) diff --git a/app/src/main/java/com/yeshi/makemoney/app/entity/config/SystemConfigKey.java b/app/src/main/java/com/yeshi/makemoney/app/entity/config/SystemConfigKey.java index 8b14a25..68b6e0e 100644 --- a/app/src/main/java/com/yeshi/makemoney/app/entity/config/SystemConfigKey.java +++ b/app/src/main/java/com/yeshi/makemoney/app/entity/config/SystemConfigKey.java @@ -8,35 +8,61 @@ */ public enum SystemConfigKey { - signKey("绛惧悕Key"), - defaultPortrait("榛樿澶村儚"), - defaultNickNamePrefix("榛樿鏄电О鍓嶇紑"), - wxAppId("寰俊寮�鏀惧钩鍙癆PPId"), - wxAppSecret("寰俊寮�鏀惧钩鍙癆PPSecret"), - aliyunOneKeyAuthAcessKey("闃块噷浜戜竴閿櫥褰昦ppId"), - aliyunOneKeyAuthAcessSecret("闃块噷浜戜竴閿櫥褰昦ppSecret"), - tencentSMSAppId("鑵捐浜戠煭淇PPID"), - tencentSMSAppKey("鑵捐浜戠煭淇PPKey"), - tencentVerifySMSTemplate("鑵捐浜戦獙璇佺爜鐭俊妯℃澘"), - testAccount("娴嬭瘯璐﹀彿"), + signKey(SystemConfigType.system, "绛惧悕Key"), + defaultPortrait(SystemConfigType.system, "榛樿澶村儚"), + defaultNickNamePrefix(SystemConfigType.system, "榛樿鏄电О鍓嶇紑"), + wxAppId(SystemConfigType.system, "寰俊寮�鏀惧钩鍙癆PPId"), + wxAppSecret(SystemConfigType.system, "寰俊寮�鏀惧钩鍙癆PPSecret"), + aliyunOneKeyAuthAcessKey(SystemConfigType.system, "闃块噷浜戜竴閿櫥褰昦ppId"), + aliyunOneKeyAuthAcessSecret(SystemConfigType.system, "闃块噷浜戜竴閿櫥褰昦ppSecret"), + tencentSMSAppId(SystemConfigType.system, "鑵捐浜戠煭淇PPID"), + tencentSMSAppKey(SystemConfigType.system, "鑵捐浜戠煭淇PPKey"), + tencentVerifySMSTemplate(SystemConfigType.system, "鑵捐浜戦獙璇佺爜鐭俊妯℃澘"), + testAccount(SystemConfigType.system, "娴嬭瘯璐﹀彿"), + emailSender(SystemConfigType.system, "鍙戦�侀偖浠剁殑璐﹀彿涓庡瘑鐮�"), + appLink(SystemConfigType.system, "搴旂敤浜屽悎涓�閾炬帴"), + androidPushAppCode(SystemConfigType.system, "android鎺ㄩ�佸簲鐢ㄧ紪鐮�"), + androidPushActivity(SystemConfigType.system, "android鎺ㄩ�佽惤鍦伴〉Activity"), //杩斿洖缁欏墠绔殑鏁版嵁 - kefu("瀹㈡湇閾炬帴"), - course("鏁欑▼閾炬帴"), - unRegister("娉ㄩ攢閾炬帴"), - privacyComplain("闅愮鎶曡瘔閾炬帴"), - vipLink("浼氬憳閾炬帴"), + kefu(SystemConfigType.common, "瀹㈡湇閾炬帴"), + course(SystemConfigType.common, "鏁欑▼閾炬帴"), + unRegister(SystemConfigType.common, "娉ㄩ攢閾炬帴"), + privacyComplain(SystemConfigType.common, "闅愮鎶曡瘔閾炬帴"), + helpLink(SystemConfigType.common, "甯姪涓績閾炬帴"), + disclaimerLink(SystemConfigType.common, "鍏嶈矗澹版槑閾炬帴"), + + //骞垮憡閰嶇疆 + splashAd(SystemConfigType.ad, "寮�灞忓箍鍛�"), + rewardAd(SystemConfigType.ad, "婵�鍔辫棰戝箍鍛�"), + exitAppAd(SystemConfigType.ad, "閫�鍑哄簲鐢ㄥ箍鍛�"), //璧勯噾鐩稿叧閰嶇疆 - extractConfig("鎻愮幇閰嶇疆"); + extractConfig(SystemConfigType.extract, "鎻愮幇閰嶇疆"), + //鍥㈤槦鍒嗘垚姣斾緥閰嶇疆 + teamFirstDivideRate(SystemConfigType.team, "鍥㈤槦涓�绾у垎鎴愭瘮渚嬶紙0-1锛�"), + teamSecondDivideRate(SystemConfigType.team, "鍥㈤槦浜岀骇鍒嗘垚姣斾緥锛�0-1锛�"), + //閲戝竵璁剧疆 + signInGoldCorn(SystemConfigType.goldCorn, "杩炵画绛惧埌閲戝竵鍒嗗竷"), + + + ; + private String desc; + + private SystemConfigType type; public String getDesc() { return desc; } - private SystemConfigKey(String desc) { + public SystemConfigType getType() { + return type; + } + + private SystemConfigKey(SystemConfigType type, String desc) { + this.type = type; this.desc = desc; } -- Gitblit v1.8.0