Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f1fed51a
authored
2025-04-19 07:42:15 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改授权书id解密方式为aes
1 parent
58b3b324
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
f1fed51
...
...
@@ -979,9 +979,9 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
borrower_name
=
customer_name
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
borrower_idnum
=
decode_des
(
id_info
.
get
(
'idNum'
,
''
),
des_key
)
borrower_idnum
=
aes_decrypt_cbc
(
id_info
.
get
(
'idNum'
,
''
),
des_key
,
des_iv
)
elif
is_corporate
and
id_info
.
get
(
'idType'
)
in
[
'Unified Social Credit Code'
,
'Tax Number'
,
'Business License Number'
]:
borrower_idnum
=
decode_des
(
id_info
.
get
(
'idNum'
,
''
),
des_key
)
borrower_idnum
=
aes_decrypt_cbc
(
id_info
.
get
(
'idNum'
,
''
),
des_key
,
des_iv
)
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
...
...
@@ -1670,9 +1670,9 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect
borrower_name
=
customer_name
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
borrower_idnum
=
decode_des
(
id_info
.
get
(
'idNum'
,
''
),
des_key
)
borrower_idnum
=
aes_decrypt_cbc
(
id_info
.
get
(
'idNum'
,
''
),
des_key
,
des_iv
)
elif
is_corporate
and
id_info
.
get
(
'idType'
)
in
[
'Unified Social Credit Code'
,
'Tax Number'
,
'Business License Number'
]:
borrower_idnum
=
decode_des
(
id_info
.
get
(
'idNum'
,
''
),
des_key
)
borrower_idnum
=
aes_decrypt_cbc
(
id_info
.
get
(
'idNum'
,
''
),
des_key
,
des_iv
)
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment