Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王宇航
supplier
Commits
02eff0af
Commit
02eff0af
authored
Oct 16, 2020
by
Wyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
獲取配置方法
Signed-off-by: Wyh <1239658231>
parent
7b53780d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
base-module/src/main/java/com/gingersoft/gsa/cloud/base/application/GsaCloudApplication.java
+2
-0
base-module/src/main/java/com/gingersoft/gsa/cloud/base/utils/RestaurantExpandInfoUtils.java
+9
-0
base-module/src/main/res/values/colors.xml
+1
-0
No files found.
base-module/src/main/java/com/gingersoft/gsa/cloud/base/application/GsaCloudApplication.java
View file @
02eff0af
...
...
@@ -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
()
{
...
...
base-module/src/main/java/com/gingersoft/gsa/cloud/base/utils/RestaurantExpandInfoUtils.java
View file @
02eff0af
...
...
@@ -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
;
...
...
base-module/src/main/res/values/colors.xml
View file @
02eff0af
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment