提现
Showing
5 changed files
with
60 additions
and
16 deletions
app/ApiInterface/WithdrawInterface.php
0 → 100644
... | @@ -53,8 +53,8 @@ class MusicianWithdrawController extends Controller | ... | @@ -53,8 +53,8 @@ class MusicianWithdrawController extends Controller |
53 | * 提现状态修改 | 53 | * 提现状态修改 |
54 | * @return \Illuminate\Http\JsonResponse | 54 | * @return \Illuminate\Http\JsonResponse |
55 | */ | 55 | */ |
56 | public function cashOut(MusicianWithdrawStatusRequest $request) | 56 | public function withdraw(MusicianWithdrawStatusRequest $request) |
57 | { | 57 | { |
58 | return $this->musicianWithdrawService->cashOut(); | 58 | return $this->musicianWithdrawService->Withdraw(); |
59 | } | 59 | } |
60 | } | 60 | } | ... | ... |
... | @@ -114,21 +114,9 @@ class MusicianWithdrawService extends Service | ... | @@ -114,21 +114,9 @@ class MusicianWithdrawService extends Service |
114 | * 修改提现状态 | 114 | * 修改提现状态 |
115 | * @return \Illuminate\Http\JsonResponse|mixed | 115 | * @return \Illuminate\Http\JsonResponse|mixed |
116 | */ | 116 | */ |
117 | public function cashOut() | 117 | public function withdraw() |
118 | { | 118 | { |
119 | $withdraw_status = ''; | ||
120 | 119 | ||
121 | /* | ||
122 | $query = StakeholderIncomeSyncApp::query()->where(['serial_no'=>$this->request->'' ,'sync_status'=>1, 'identifier'=>$this->identifier->identifier]) | ||
123 | ->whereIn('serial_no', $this->request->serial_no); | ||
124 | */ | ||
125 | |||
126 | |||
127 | if ($query->update(['withdraw_status'=>$withdraw_status])) { | ||
128 | return Response::success(); | ||
129 | } else { | ||
130 | return Response::error(); | ||
131 | } | ||
132 | } | 120 | } |
133 | 121 | ||
134 | } | 122 | } | ... | ... |
app/Services/WithdrawService.php
0 → 100644
1 | <?php | ||
2 | |||
3 | namespace App\Services; | ||
4 | |||
5 | use App\ApiInterface\WithdrawInterface; | ||
6 | |||
7 | /** | ||
8 | * Class MusicianAgreementService | ||
9 | * @package App\Services | ||
10 | */ | ||
11 | class WithdrawService extends Service implements WithdrawInterface | ||
12 | { | ||
13 | /** | ||
14 | * 提现申请 | ||
15 | * @param string $serial_no | ||
16 | * @return \Illuminate\Http\JsonResponse | ||
17 | */ | ||
18 | public function advance(string $serial_no) | ||
19 | { | ||
20 | |||
21 | } | ||
22 | |||
23 | /** | ||
24 | * 提现成功 | ||
25 | * @param string $serial_no | ||
26 | */ | ||
27 | public function success(string $serial_no) | ||
28 | { | ||
29 | // TODO: Implement success() method. | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * 提现失败 | ||
34 | * @param string $serial_no | ||
35 | */ | ||
36 | public function fail(string $serial_no) | ||
37 | { | ||
38 | // TODO: Implement fail() method. | ||
39 | } | ||
40 | } |
... | @@ -40,7 +40,7 @@ Route::group([], function (){ | ... | @@ -40,7 +40,7 @@ Route::group([], function (){ |
40 | //账单状态修改 | 40 | //账单状态修改 |
41 | Route::post('withdraw/bill_confirm', 'MusicianWithdrawController@billConfirm'); | 41 | Route::post('withdraw/bill_confirm', 'MusicianWithdrawController@billConfirm'); |
42 | //账单状态修改 | 42 | //账单状态修改 |
43 | Route::post('withdraw/status', 'MusicianWithdrawController@cashOut'); | 43 | Route::post('withdraw/status', 'MusicianWithdrawController@withdraw'); |
44 | //钱包-账单收益 | 44 | //钱包-账单收益 |
45 | Route::get('wallet/detail', 'MusicianWalletController@walletDetail'); | 45 | Route::get('wallet/detail', 'MusicianWalletController@walletDetail'); |
46 | 46 | ... | ... |
-
Please register or sign in to post a comment