Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tour_business
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
魏强
tour_business
Commits
958f3eec
Commit
958f3eec
authored
Sep 25, 2020
by
Aeolus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重开发票修改
parent
abaea925
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
Config/common_config.py
+2
-2
Controller/InvoiceController.py
+8
-4
No files found.
Config/common_config.py
View file @
958f3eec
...
@@ -41,11 +41,11 @@ INVOICE_CONFIG = {
...
@@ -41,11 +41,11 @@ INVOICE_CONFIG = {
"app_key"
:
"8C8A5FD94F08F1D8"
if
is_prod
else
"5EE6C2C11DD421F2"
,
"app_key"
:
"8C8A5FD94F08F1D8"
if
is_prod
else
"5EE6C2C11DD421F2"
,
"xsf_nsrsbh"
:
"913205943138134162"
if
is_prod
else
"110109500321655"
,
"xsf_nsrsbh"
:
"913205943138134162"
if
is_prod
else
"110109500321655"
,
"xsf_mc"
:
"苏州随身玩信息技术有限公司"
if
is_prod
else
"百旺电子测试2"
,
"xsf_mc"
:
"苏州随身玩信息技术有限公司"
if
is_prod
else
"百旺电子测试2"
,
"url"
:
"https://www.fapiao.com:6308
9
/fpt-dsqz/invoice"
if
is_prod
else
"https://dev.fapiao.com:18944/fpt-dsqz/invoice"
,
"url"
:
"https://www.fapiao.com:6308
5
/fpt-dsqz/invoice"
if
is_prod
else
"https://dev.fapiao.com:18944/fpt-dsqz/invoice"
,
"spbm"
:
"304020300000000000001"
if
is_prod
else
"3070401000000000000"
,
"spbm"
:
"304020300000000000001"
if
is_prod
else
"3070401000000000000"
,
"cert_path"
:
"Libs/cert/invoice/cert.pem"
if
is_prod
else
"Libs/cert/invoice/testISSUE.pem"
,
"cert_path"
:
"Libs/cert/invoice/cert.pem"
if
is_prod
else
"Libs/cert/invoice/testISSUE.pem"
,
"content"
:
"*旅游娱乐服务*讲解服务"
,
"content"
:
"*旅游娱乐服务*讲解服务"
,
"dizhi_dianhua"
:
"苏州工业园区
若水路1号
0512-62748449"
,
"dizhi_dianhua"
:
"苏州工业园区
林泉街399号东南大学国家大学科技园(苏州)南工院2#210室
0512-62748449"
,
"yinhang_zhanghao"
:
"招商银行苏州分行营业部512905030310801"
,
"yinhang_zhanghao"
:
"招商银行苏州分行营业部512905030310801"
,
"kaipiaoren"
:
"随身玩"
,
"kaipiaoren"
:
"随身玩"
,
"shoukuanren"
:
"随身玩"
,
"shoukuanren"
:
"随身玩"
,
...
...
Controller/InvoiceController.py
View file @
958f3eec
...
@@ -18,7 +18,8 @@ route_invoice = Blueprint('invoice', __name__)
...
@@ -18,7 +18,8 @@ route_invoice = Blueprint('invoice', __name__)
@route_invoice.route
(
'/list'
)
@route_invoice.route
(
'/list'
)
def
invoice_list
():
def
invoice_list
():
if
g
.
user
.
id
!=
4
:
if
g
.
user
.
id
not
in
(
2
,
4
):
# if g.user.id != 4:
return
jsonify
(
BASE_RESPONSE
(
error_code
=-
1
,
error_message
=
'permission denied'
)
.
to_dict
())
return
jsonify
(
BASE_RESPONSE
(
error_code
=-
1
,
error_message
=
'permission denied'
)
.
to_dict
())
invoice_info
=
InvoiceRecord
.
query
.
filter
(
InvoiceRecord
.
status
==
1
,
InvoiceRecord
.
parent_id
>
0
)
.
all
()
invoice_info
=
InvoiceRecord
.
query
.
filter
(
InvoiceRecord
.
status
==
1
,
InvoiceRecord
.
parent_id
>
0
)
.
all
()
...
@@ -39,7 +40,8 @@ def invoice_list():
...
@@ -39,7 +40,8 @@ def invoice_list():
@route_invoice.route
(
'/verify'
,
methods
=
[
'GET'
,
'POST'
])
@route_invoice.route
(
'/verify'
,
methods
=
[
'GET'
,
'POST'
])
def
invoice_compare
():
def
invoice_compare
():
if
g
.
user
.
id
!=
4
:
if
g
.
user
.
id
not
in
(
2
,
4
):
# if g.user.id != 4:
return
jsonify
(
BASE_RESPONSE
(
error_code
=-
1
,
error_message
=
'permission denied'
)
.
to_dict
())
return
jsonify
(
BASE_RESPONSE
(
error_code
=-
1
,
error_message
=
'permission denied'
)
.
to_dict
())
json_data
=
request
.
get_json
()
json_data
=
request
.
get_json
()
...
@@ -92,7 +94,8 @@ def invoice_compare():
...
@@ -92,7 +94,8 @@ def invoice_compare():
@route_invoice.route
(
'/submit'
,
methods
=
[
'GET'
,
'POST'
])
@route_invoice.route
(
'/submit'
,
methods
=
[
'GET'
,
'POST'
])
def
invoice_submit
():
def
invoice_submit
():
if
g
.
user
.
id
!=
4
:
if
g
.
user
.
id
not
in
(
2
,
4
):
# if g.user.id != 4:
return
jsonify
(
BASE_RESPONSE
(
error_code
=-
1
,
error_message
=
'permission denied'
)
.
to_dict
())
return
jsonify
(
BASE_RESPONSE
(
error_code
=-
1
,
error_message
=
'permission denied'
)
.
to_dict
())
json_data
=
request
.
get_json
()
json_data
=
request
.
get_json
()
...
@@ -168,7 +171,8 @@ def invoice_submit():
...
@@ -168,7 +171,8 @@ def invoice_submit():
@route_invoice.route
(
'/rent_list'
,
methods
=
[
'GET'
,
'POST'
])
@route_invoice.route
(
'/rent_list'
,
methods
=
[
'GET'
,
'POST'
])
def
invoice_rent
():
def
invoice_rent
():
if
g
.
user
.
id
!=
4
:
if
g
.
user
.
id
not
in
(
2
,
4
):
# if g.user.id != 4:
return
jsonify
(
BASE_RESPONSE
(
error_code
=-
1
,
error_message
=
'permission denied'
)
.
to_dict
())
return
jsonify
(
BASE_RESPONSE
(
error_code
=-
1
,
error_message
=
'permission denied'
)
.
to_dict
())
json_data
=
request
.
get_json
()
json_data
=
request
.
get_json
()
...
...
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