Commit ce1a8b04 by sikang

script update

parent d73333e9
...@@ -155,7 +155,22 @@ def code_certifyprogress(path): ...@@ -155,7 +155,22 @@ def code_certifyprogress(path):
"\t\t\t\tstartFragment(accountFragment, false);\n" "\t\t\t\tstartFragment(accountFragment, false);\n"
line = line + code line = line + code
f_w.write(line) f_w.write(line)
print ("code_fragments updated !") print ("code_Progress updated !")
return
def code_messageid(path):
# print("processing content: %s..." % path)
with open(path, "r", encoding="utf-8") as f:
# readlines以列表的形式将文件读出
lines = f.readlines()
with open(path, "w", encoding="utf-8") as f_w:
for line in lines:
if "public static final int LOAN_STATUS_CHANGED = 3;" in line:
line += "\n\tpublic static final int CERTIFY_PROGRESS_CHANGED = 4;//贷款进度更新\n"
f_w.write(line)
print ("code_MessageID updated !")
return return
...@@ -166,7 +181,7 @@ for root, dirs, files in os.walk("../../../app/src/main"): ...@@ -166,7 +181,7 @@ for root, dirs, files in os.walk("../../../app/src/main"):
# get the path of the java file # get the path of the java file
path = os.path.join(directory, file) path = os.path.join(directory, file)
code_loanapplyfragment(path) code_loanapplyfragment(path)
elif file.endswith("CertifyActivity.java"): elif file.endswith("CertifyActiviy.java"):
path = os.path.join(directory, file) path = os.path.join(directory, file)
code_certifyactivity(path) code_certifyactivity(path)
elif file.endswith("IdentityInfoFragment.java") or file.endswith( elif file.endswith("IdentityInfoFragment.java") or file.endswith(
......
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