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
d73333e9
Commit
d73333e9
authored
Apr 05, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
35eb8cb7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
script/code/code_sync.sh
+1
-1
script/code/thirdpart_list.py
+7
-8
No files found.
script/code/code_sync.sh
100644 → 100755
View file @
d73333e9
...
...
@@ -3,7 +3,7 @@ echo "1、同盾列表添加最少选择数量"
echo
-n
"请输入指令编号:"
read
commod
if
((
$commod
==
'
0
'
))
if
((
$commod
==
'
1
'
))
then
chmod a+x thirdpart_list.py
./thirdpart_list.py
...
...
script/code/thirdpart_list.py
100644 → 100755
View file @
d73333e9
...
...
@@ -25,7 +25,6 @@ def code_loanapplyfragment(path):
flag4
=
False
brackets
=
0
for
line
in
lines
:
if
"getPresenter(LoanPresenter.class).checkQualification(
\"
action_checkQualification
\"
);"
in
line
:
code
=
"
\n\t\t\t\t\t
new LoanApplyProxy(getActivity(), this, productBean).startLoan(basicAck -> {
\n
"
+
\
"
\t\t\t\t\t\t
new EventSender.Builder(MessageID.LOAN_STATUS_CHANGED).build().sendEvent();
\n
"
+
\
...
...
@@ -36,7 +35,7 @@ def code_loanapplyfragment(path):
if
"case
\"
action_checkQualification
\"
:"
in
line
:
flag3
=
True
if
flag3
:
flag3
=
"// "
+
line
line
=
"// "
+
line
if
"break;"
in
line
:
flag3
=
False
;
...
...
@@ -51,11 +50,13 @@ def code_loanapplyfragment(path):
# 1
if
"public void startFaceVerify() {"
in
line
:
flag1
=
True
brackets
=
get_brackets
(
line
)
if
flag1
and
brackets
>
0
:
if
flag1
:
line
=
"// "
+
line
brackets
+=
get_brackets
(
line
)
if
brackets
==
0
:
flag1
=
False
f_w
.
write
(
line
)
print
(
"code_LoanAppFragment updated !"
)
return
...
...
@@ -153,14 +154,12 @@ def code_certifyprogress(path):
"
\t\t\t\t
accountFragment.setArguments(getIntent().getExtras());
\n
"
+
\
"
\t\t\t\t
startFragment(accountFragment, false);
\n
"
line
=
line
+
code
f_w
.
write
(
line
)
print
(
"code_fragments updated !"
)
return
for
root
,
dirs
,
files
in
os
.
walk
(
"../../app/src/main"
):
for
root
,
dirs
,
files
in
os
.
walk
(
"../../
../
app/src/main"
):
directory
=
os
.
path
.
join
(
os
.
getcwd
(),
root
)
for
file
in
files
:
if
file
.
endswith
(
"LoanApplyFragment.java"
):
...
...
@@ -172,7 +171,7 @@ for root, dirs, files in os.walk("../../app/src/main"):
code_certifyactivity
(
path
)
elif
file
.
endswith
(
"IdentityInfoFragment.java"
)
or
file
.
endswith
(
"PersonalInfoFragment.java"
)
or
file
.
endswith
(
"ContactInfoFragment.java"
)
or
file
.
endswith
(
"ProfessionalFragment.java"
)
"ContactInfoFragment.java"
)
or
file
.
endswith
(
"ProfessionalFragment.java"
)
:
path
=
os
.
path
.
join
(
directory
,
file
)
code_fragments
(
path
)
elif
file
.
endswith
(
"CertifyProgressActivity.java"
):
...
...
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