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
ccf45dbb
...
ccf45dbb99d3e0b291ed1b654788731c599e7015
authored
2021-11-17 14:35:31 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提现
1 parent
4efe516e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
16 deletions
app/ApiInterface/WithdrawInterface.php
app/Http/Controllers/Musician/MusicianWithdrawController.php
app/Services/MusicianWithdrawService.php
app/Services/WithdrawService.php
routes/api.php
app/ApiInterface/WithdrawInterface.php
0 → 100644
View file @
ccf45db
<?php
namespace
App\ApiInterface
;
/**
* Interface PaymentInterface
* @package App\ApiInterface
*/
interface
WithdrawInterface
{
public
function
advance
(
string
$serial_no
);
public
function
success
(
string
$serial_no
);
public
function
fail
(
string
$serial_no
);
}
app/Http/Controllers/Musician/MusicianWithdrawController.php
View file @
ccf45db
...
...
@@ -53,8 +53,8 @@ class MusicianWithdrawController extends Controller
* 提现状态修改
* @return \Illuminate\Http\JsonResponse
*/
public
function
cashOut
(
MusicianWithdrawStatusRequest
$request
)
public
function
withdraw
(
MusicianWithdrawStatusRequest
$request
)
{
return
$this
->
musicianWithdrawService
->
cashOut
();
return
$this
->
musicianWithdrawService
->
Withdraw
();
}
}
...
...
app/Services/MusicianWithdrawService.php
View file @
ccf45db
...
...
@@ -114,21 +114,9 @@ class MusicianWithdrawService extends Service
* 修改提现状态
* @return \Illuminate\Http\JsonResponse|mixed
*/
public
function
cashOut
()
public
function
withdraw
()
{
$withdraw_status
=
''
;
/*
$query = StakeholderIncomeSyncApp::query()->where(['serial_no'=>$this->request->'' ,'sync_status'=>1, 'identifier'=>$this->identifier->identifier])
->whereIn('serial_no', $this->request->serial_no);
*/
if
(
$query
->
update
([
'withdraw_status'
=>
$withdraw_status
]))
{
return
Response
::
success
();
}
else
{
return
Response
::
error
();
}
}
}
...
...
app/Services/WithdrawService.php
0 → 100644
View file @
ccf45db
<?php
namespace
App\Services
;
use
App\ApiInterface\WithdrawInterface
;
/**
* Class MusicianAgreementService
* @package App\Services
*/
class
WithdrawService
extends
Service
implements
WithdrawInterface
{
/**
* 提现申请
* @param string $serial_no
* @return \Illuminate\Http\JsonResponse
*/
public
function
advance
(
string
$serial_no
)
{
}
/**
* 提现成功
* @param string $serial_no
*/
public
function
success
(
string
$serial_no
)
{
// TODO: Implement success() method.
}
/**
* 提现失败
* @param string $serial_no
*/
public
function
fail
(
string
$serial_no
)
{
// TODO: Implement fail() method.
}
}
routes/api.php
View file @
ccf45db
...
...
@@ -40,7 +40,7 @@ Route::group([], function (){
//账单状态修改
Route
::
post
(
'withdraw/bill_confirm'
,
'MusicianWithdrawController@billConfirm'
);
//账单状态修改
Route
::
post
(
'withdraw/status'
,
'MusicianWithdrawController@
cashOut
'
);
Route
::
post
(
'withdraw/status'
,
'MusicianWithdrawController@
withdraw
'
);
//钱包-账单收益
Route
::
get
(
'wallet/detail'
,
'MusicianWalletController@walletDetail'
);
...
...
Please
register
or
sign in
to post a comment