Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
financial-system
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xianyang
financial-system
Commits
50faa3ed
Commit
50faa3ed
authored
Jul 20, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化保证金
parent
fc258a89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
crud.py
app/api/margin/crud.py
+2
-1
No files found.
app/api/margin/crud.py
View file @
50faa3ed
...
...
@@ -96,6 +96,7 @@ class GuildMargin(object):
}
res
=
send_json_rpc_request
(
request_data
,
'Server.UserExecute.Recharge'
)
Logger
()
.
logger
.
info
(
f
"清算recharge_user结果:{str(res)}"
)
res
[
'_sql'
]
=
[]
insert_sql
=
f
"insert into all_record_table(user_id, type, status, uuid, reference_number, money, amount_type, money_data, is_add, create_time, errmsg) "
\
f
"values({guild_id}, '{reference_type}', 2, '{ice_uuid}', {reference_number}, {money * 10}, 1, '保证金充值',1,{timestamp}, '{json.dumps(res)}');"
if
res
[
'status'
]
==
9
:
...
...
@@ -104,7 +105,7 @@ class GuildMargin(object):
if
res
[
'status'
]
==
False
:
insert_sql
=
f
"insert into all_record_table(user_id, type, status, uuid, reference_number, money, amount_type, money_data, is_add, create_time, errmsg) "
\
f
"values({guild_id}, '{reference_type}', 3, '{ice_uuid}', {reference_number}, {money * 10}, 1, '保证金充值',1,{timestamp}, '{json.dumps(res)}');"
print
(
f
'保证金错误,订单号:{reference_number}'
)
Logger
()
.
logger
.
info
(
f
'保证金错误,订单号:{reference_number}'
)
LinkMysql
(
env
.
DB_3YV2
)
.
perform_mysql
(
insert_sql
)
def
guild_authority
(
self
,
guild_id
,
amount
,
guild_info
):
...
...
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