Commit eab6d6c0 eab6d6c000a20e25eeb0162e42d1ee6ec3648245 by lemon

*

1 parent 025c90db
......@@ -36,4 +36,5 @@ class MusicianWithdrawController extends Controller
{
return $this->musicianWithdrawService->withdraw();
}
}
......
......@@ -15,6 +15,10 @@ use Illuminate\Http\Request;
*/
class AuthIdentifier
{
protected $auth = [
'api'
];
/**
* Handle an incoming request.
*
......@@ -24,6 +28,9 @@ class AuthIdentifier
*/
public function handle(Request $request, Closure $next)
{
$prefix = current(explode('/', $request->path()));
if (!in_array($prefix, $this->auth)) goto AUTH;
$identifier = $request->header('identifier');
if (env('APP_ENV') == 'local' && empty($identifier)) {
......@@ -45,6 +52,8 @@ class AuthIdentifier
'stakeholder_ids' => $stakeholder_ids,
]);
AUTH:
return $next($request);
}
}
......
......@@ -13,9 +13,6 @@ use Illuminate\Support\Facades\Route;
|
*/
Route::group([], function (){
Route::get('musician/xxx1', 'MusicianWithdrawController@withdraw');
//提现审核通过
Route::post('musician/withdraw', 'MusicianWithdrawController@withdraw');
});
......