Commit 02eff0af by Wyh

獲取配置方法

Signed-off-by: Wyh <1239658231>
parent 7b53780d
......@@ -227,6 +227,8 @@ public class GsaCloudApplication extends BaseApplication {
RetrofitUrlManager.getInstance().putDomain("ricepon_activities", HttpsConstans.ricepon_activities);
///ricepon-cloud-gsa/api/請求地址
RetrofitUrlManager.getInstance().putDomain("ricepon_cloud_gsa", HttpsConstans.ricepon_cloud_gsa);
//61177
RetrofitUrlManager.getInstance().putDomain("ricepon_member", HttpsConstans.RICEPON_MEMBER_61177);
}
private void initPrint() {
......
......@@ -141,6 +141,15 @@ public class RestaurantExpandInfoUtils {
public static <T> T getValue(String name, Object defaultValue) {
if (map != null && map.containsKey(name)) {
if (defaultValue instanceof Boolean) {
if (map.get(name) instanceof Boolean) {
return (T) map.get(name);
} else if (map.get(name) instanceof Integer) {
map.put(name, (int) map.get(name) == 0);
} else {
return (T) defaultValue;
}
}
return (T) map.get(name);
} else {
return (T) defaultValue;
......
......@@ -468,6 +468,7 @@
<color name="color_18">#181818</color>
<color name="color_e8">#e8e8e8</color>
<color name="color_ea">#EAEAEA</color>
<color name="color_4c">#4c4c4c</color>
<color name="tran_twenty_send_order_btn_bg_color">#331196DB</color>
<color name="tran_fifty_order_state0_color">#7F009788</color>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment