Commit ab668fe7 by sikang

bug fix

parent d4a2eabc
...@@ -154,7 +154,7 @@ class Function: ...@@ -154,7 +154,7 @@ class Function:
replaces = { replaces = {
"base_url": "\"%s\"" % gateway['rest'][0], "base_url": "\"%s\"" % gateway['rest'][0],
"harvest_ip": "\"%s\"" % gateway['harvester'][0].split(":")[1], "harvest_ip": "\"%s\"" % gateway['harvester'][0].split(":")[1],
"harvest_port": "\"%s\"" % gateway['harvester'][0].split(":")[2], "harvest_port": "%s" % gateway['harvester'][0].split(":")[2],
"gateway_ip": "\"%s\"" % ip, "gateway_ip": "\"%s\"" % ip,
"repayment_h5": "\"%s\"" % gateway['repay'][0], "repayment_h5": "\"%s\"" % gateway['repay'][0],
"admin_host": "\"%s\"" % gateway['admin'][0], "admin_host": "\"%s\"" % gateway['admin'][0],
...@@ -250,7 +250,7 @@ class Function: ...@@ -250,7 +250,7 @@ class Function:
os.makedirs(target+"/"+file_name) os.makedirs(target+"/"+file_name)
Function.create_desc(config) Function.create_desc(config)
try: try:
shutil.move("%s/%s.apk" % (target, file_name), shutil.move("%s/%s.apk" % (target, file_name),
"%s/%s/%s.apk" % (target, file_name, file_name)) "%s/%s/%s.apk" % (target, file_name, file_name))
......
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