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
296d6017
...
296d60175a67c6bb09a25ea6e984956d8bea8b8a
authored
2021-08-23 13:59:50 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
ae45a0b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
app/Services/MusicianWithdrawService.php
app/Services/MusicianWithdrawService.php
View file @
296d601
...
...
@@ -48,22 +48,25 @@ class MusicianWithdrawService extends Service
{
$withdraw_status
=
''
;
$query
=
StakeholderIncomeByPayer
::
query
()
->
where
([
'sync_status'
=>
1
,
'identifier'
=>
$this
->
identifier
->
identifier
])
->
whereIn
(
'serial_no'
,
$this
->
request
->
input
(
'serial_no'
));
switch
(
$this
->
request
->
input
(
'type'
))
{
case
'fail'
:
$withdraw_status
=
0
;
$query
=
$query
->
where
([
'withdraw_status'
=>
1
]);
break
;
case
'advance'
:
$withdraw_status
=
1
;
$query
=
$query
->
where
([
'withdraw_status'
=>
0
]);
break
;
case
'success'
:
$withdraw_status
=
2
;
$query
=
$query
->
where
([
'withdraw_status'
=>
1
]);
break
;
}
if
(
StakeholderIncomeByPayer
::
query
()
->
where
([
'sync_status'
=>
1
,
'identifier'
=>
$this
->
identifier
->
identifier
])
->
whereIn
(
'serial_no'
,
$this
->
request
->
input
(
'serial_no'
))
->
update
([
'withdraw_status'
=>
$withdraw_status
,
]))
{
if
(
$query
->
update
([
'withdraw_status'
=>
$withdraw_status
]))
{
return
Response
::
success
();
}
else
{
return
Response
::
error
();
...
...
Please
register
or
sign in
to post a comment