Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
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
sikang
lib_base
Commits
fe8aa22b
Commit
fe8aa22b
authored
Jul 09, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add checklist auto
parent
5b07a6e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
script/res/update_gateway.py
+3
-1
script/script_help.sh
+9
-3
No files found.
script/res/update_gateway.py
View file @
fe8aa22b
...
...
@@ -40,7 +40,9 @@ with open(path, "w") as f_w:
elif
"agreement_url="
in
line
:
line
=
"agreement_url=
\"
%
s
\"\n
"
%
(
gateway
[
'privacy'
][
0
])
elif
"home="
in
line
:
line
=
"home=
\"
%
s
\"\n
"
%
(
gateway
[
'home'
][
0
])
f_w
.
write
(
line
)
print
(
gateway
[
'home'
][
0
]
+
"/privacy.html"
)
script/script_help.sh
View file @
fe8aa22b
...
...
@@ -27,6 +27,7 @@ echo "22、更新gateway"
echo
"23、字符串加密"
echo
"24、添加toolbox库"
echo
"25、马甲包切换"
echo
"26、打印checklist"
echo
" "
if
[[
"
$gateway_url
"
==
"
$gateway_mj
"
]]
;
then
...
...
@@ -223,7 +224,7 @@ then
cp script/api_mapping_main script/api_mapping
#APP名替换
sed
-i
""
"s#^app_name=.*#app_name=
${
main_name
}
#g"
gradle.properties
sed
-i
""
"s#^app_name=.*#app_name=
'
${
main_name
}
'
#g"
gradle.properties
sed
-i
""
"s#^gateway_url=.*#gateway_url=
\"
${
gateway_main
}
\"
#g"
gradle.properties
sed
-i
""
"s#^host_app=.*#host_app=true#g"
gradle.properties
#更新gw
...
...
@@ -240,7 +241,7 @@ then
cp script/api_mapping_majia script/api_mapping
#APP名替换
sed
-i
""
"s#^app_name=.*#app_name=
${
majia_name
}
#g"
gradle.properties
sed
-i
""
"s#^app_name=.*#app_name=
'
${
majia_name
}
'
#g"
gradle.properties
sed
-i
""
"s#^gateway_url=.*#gateway_url=
\"
${
gateway_mj
}
\"
#g"
gradle.properties
sed
-i
""
"s#^host_app=.*#host_app=false#g"
gradle.properties
#更新gw
...
...
@@ -249,7 +250,12 @@ then
python update_gateway.py
fi
elif
((
$commod
==
'26'
))
;
then
echo
" "
echo
"
${
corp_id
}
${
app_name
}
"
echo
"对内协议:
${
agreement_url
}
"
echo
"对外协议:
${
home
}
/privacy.html"
echo
" "
elif
((
$commod
==
'10000'
))
then
...
...
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