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
2e2c0a83
authored
2022-05-19 14:53:45 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
51567871
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
src/apps/account/views.py
src/apps/doc/consts.py
src/apps/doc/views.py
src/apps/account/views.py
View file @
2e2c0a8
...
...
@@ -100,10 +100,10 @@ class AdminLoginView(IWABaseView, GenericView):
def
get
(
self
,
request
,
*
args
,
**
kwargs
):
code
=
request
.
GET
.
get
(
'code'
,
''
)
# is_admin = request.GET.get('state', '') == 'admin'
q_number
=
self
.
get_q_number
(
conf
.
IWA_URL
,
code
,
conf
.
IWA_REDIRECT_URI
,
client_id_base64
)
q_number
=
self
.
get_q_number
(
conf
.
IWA_URL
,
code
,
conf
.
IWA_
ADMIN_
REDIRECT_URI
,
client_id_base64
)
# self.running_log.info('code={0}, is_admin={1}'.format(code, is_admin))
self
.
running_log
.
info
(
'[admin_users.iwalogin] [username: {0}] [params: {1}]'
.
format
(
q_number
,
request
.
data
))
self
.
running_log
.
info
(
'[admin_users.iwalogin] [username: {0}] [params: {1}]'
.
format
(
q_number
,
request
.
GET
))
is_valid
,
data
=
self
.
validate_admin
(
q_number
)
...
...
src/apps/doc/consts.py
View file @
2e2c0a8
...
...
@@ -1850,7 +1850,7 @@ for _, _, _, tmp_bs_reason in BS_COMPARE_LOGIC.values():
# ['承租人姓名', '承租人证件号', '承租人签字', '共同承租人姓名', '共同承租人证件号', '共同承租人签字', '保证人姓名1', '保证人证件号1', '保证人签字1', '保证人姓名2', '保证人证件号2', '保证人签字2']
HIL_CONTRACT_1_COMPARE_LOGIC
=
{
'合同编号-每页'
:
(
'合同编号-每页'
,
'se_list_compare'
,
{},
'售后回租合同中合同编号系统不一致'
),
'合同编号-正文'
:
(
'合同编号-正文'
,
'se_common_compare'
,
{},
'售后回租合同
第一页
正文中合同编号系统不一致'
),
'合同编号-正文'
:
(
'合同编号-正文'
,
'se_common_compare'
,
{},
'售后回租合同正文中合同编号系统不一致'
),
'车辆识别代码'
:
(
'车辆识别代码'
,
'se_common_compare'
,
{},
'售后回租合同车辆识别代码与系统车架号不一致'
),
'车辆卖方'
:
(
'车辆卖方'
,
'se_common_compare'
,
{},
'售后回租合同车辆卖方与系统经销商不一致'
),
'车辆原始销售价格'
:
(
'车辆原始销售价格'
,
'se_amount_str_compare'
,
{},
'售后回租合同车辆原始销售价格与系统车辆价格不一致'
),
...
...
src/apps/doc/views.py
View file @
2e2c0a8
...
...
@@ -1005,10 +1005,10 @@ class DocView(GenericView, DocHandler):
class
CompareResultView
(
GenericView
):
#
permission_classes = []
#
authentication_classes = []
permission_classes
=
[
IsAuthenticated
]
authentication_classes
=
[
OAuth2AuthenticationWithUser
]
permission_classes
=
[]
authentication_classes
=
[]
#
permission_classes = [IsAuthenticated]
#
authentication_classes = [OAuth2AuthenticationWithUser]
# 获取比对结果
@use_args
(
compare_result_args
,
location
=
'querystring'
)
...
...
@@ -1307,10 +1307,10 @@ class SEContractView(GenericView):
class
AutoSettlementView
(
GenericView
):
#
permission_classes = []
#
authentication_classes = []
permission_classes
=
[
IsAuthenticated
]
authentication_classes
=
[
OAuth2AuthenticationWithUser
]
permission_classes
=
[]
authentication_classes
=
[]
#
permission_classes = [IsAuthenticated]
#
authentication_classes = [OAuth2AuthenticationWithUser]
# 获取auto settlement列表
@use_args
(
auto_list_args
,
location
=
'querystring'
)
...
...
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