Commit fe8aa22b by sikang

add checklist auto

parent 5b07a6e9
...@@ -40,7 +40,9 @@ with open(path, "w") as f_w: ...@@ -40,7 +40,9 @@ with open(path, "w") as f_w:
elif "agreement_url=" in line: elif "agreement_url=" in line:
line = "agreement_url=\"%s\"\n"%(gateway['privacy'][0]) line = "agreement_url=\"%s\"\n"%(gateway['privacy'][0])
elif "home=" in line:
line = "home=\"%s\"\n"%(gateway['home'][0])
f_w.write(line) f_w.write(line)
print(gateway['home'][0]+"/privacy.html")
...@@ -27,6 +27,7 @@ echo "22、更新gateway" ...@@ -27,6 +27,7 @@ echo "22、更新gateway"
echo "23、字符串加密" echo "23、字符串加密"
echo "24、添加toolbox库" echo "24、添加toolbox库"
echo "25、马甲包切换" echo "25、马甲包切换"
echo "26、打印checklist"
echo " " echo " "
if [[ "$gateway_url" == "$gateway_mj" ]];then if [[ "$gateway_url" == "$gateway_mj" ]];then
...@@ -223,7 +224,7 @@ then ...@@ -223,7 +224,7 @@ then
cp script/api_mapping_main script/api_mapping cp script/api_mapping_main script/api_mapping
#APP名替换 #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#^gateway_url=.*#gateway_url=\"${gateway_main}\"#g" gradle.properties
sed -i "" "s#^host_app=.*#host_app=true#g" gradle.properties sed -i "" "s#^host_app=.*#host_app=true#g" gradle.properties
#更新gw #更新gw
...@@ -240,7 +241,7 @@ then ...@@ -240,7 +241,7 @@ then
cp script/api_mapping_majia script/api_mapping cp script/api_mapping_majia script/api_mapping
#APP名替换 #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#^gateway_url=.*#gateway_url=\"${gateway_mj}\"#g" gradle.properties
sed -i "" "s#^host_app=.*#host_app=false#g" gradle.properties sed -i "" "s#^host_app=.*#host_app=false#g" gradle.properties
#更新gw #更新gw
...@@ -249,7 +250,12 @@ then ...@@ -249,7 +250,12 @@ then
python update_gateway.py python update_gateway.py
fi fi
elif (($commod == '26'));then
echo " "
echo "${corp_id} ${app_name} "
echo "对内协议:${agreement_url}"
echo "对外协议:${home}/privacy.html"
echo " "
elif (($commod == '10000')) elif (($commod == '10000'))
then then
......
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