Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
b2c6f309
...
b2c6f3092923586329ae73a192a96430c1e9e913
authored
2021-06-30 17:15:01 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
2d91bbd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Services/MusicianWithdrawService.php
app/Services/MusicianWithdrawService.php
View file @
b2c6f30
...
...
@@ -26,15 +26,15 @@ class MusicianWithdrawService extends Service
$order_id
=
$this
->
request
->
input
(
'order_id'
);
if
(
!
RedisClient
::
instance
()
->
set
(
str_replace
(
'#order#'
,
$order_id
,
config
(
'cachekey.withdraw.prepare'
)),
true
,
"nx"
,
"ex"
,
3
))
{
return
$this
->
error
(
ErrorCode
::
REPEAT_SUBMIT
);
return
Response
::
error
(
ErrorCode
::
REPEAT_SUBMIT
);
}
$order
=
CashOutOrder
::
query
()
->
where
([
'order_id'
=>
$order_id
,
'withdraw_state'
=>
CashOutOrder
::
WITHDRAW_STATE_DEFAULT
,
'status'
=>
CashOutOrder
::
STATUS_WAIT
])
->
first
();
//订单非法
if
(
empty
(
$order
))
return
$this
->
error
(
ErrorCode
::
ORDER_ILLEGAl
);
if
(
empty
(
$order
->
balance_detail
))
return
$this
->
error
(
ErrorCode
::
ORDER_WITHDRAW_ERROR
);
if
(
empty
(
$order
->
cash_out_money
))
return
$this
->
error
(
ErrorCode
::
ORDER_MONEY_ERROR
);
if
(
empty
(
$order
))
return
Response
::
error
(
ErrorCode
::
ORDER_ILLEGAl
);
if
(
empty
(
$order
->
balance_detail
))
return
Response
::
error
(
ErrorCode
::
ORDER_WITHDRAW_ERROR
);
if
(
empty
(
$order
->
cash_out_money
))
return
Response
::
error
(
ErrorCode
::
ORDER_MONEY_ERROR
);
Db
::
beginTransaction
();
try
{
...
...
Please
register
or
sign in
to post a comment