Commit 488b53c8 by sikang

update script

parent ef48fb31
......@@ -7,6 +7,9 @@ import sys
path = "../../../gradle.properties"
gw_url=os.popen('. ../../../gradle.properties\necho "${gateway_url}"').read().replace('\n', '')
if len(sys.argv[1]) > 5:
gw_url=sys.argv[1]
print(gw_url)
gateway = requests.get(gw_url).json()
print(gateway)
......
......@@ -24,6 +24,7 @@ echo "21、获取签名秘钥散列"
echo "22、更新gateway"
echo "23、字符串加密"
echo "24、添加toolbox库"
echo "25、替换马甲配置"
echo -n "请输入指令编号:"
read commod
......@@ -198,6 +199,16 @@ then
cd ../../../
git submodule add https://git.starwin.tech/sikang/cash_plugin_toolbox.git
elif (($commod == '25'))
then
cd ../..
. gradle.properties
mv "app/src/main/res/drawable-xxhdpi/logo_majia${1}.png" app/src/main/res/drawable-xxhdpi/logo.png
mv "script/api_mapping_majia${1}" script/api_mapping
cd res
chmod a+x update_gateway.py
python update_gateway.py ${gateway_mj}
elif (($commod == '10000'))
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