改进 推介
This commit is contained in:
parent
59fb4f86bb
commit
abfa4c233c
@ -37,6 +37,8 @@ public function register(Request $request): JsonResponse|RedirectResponse
|
|||||||
// return $response;
|
// return $response;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
session()->forget('affiliate_id');
|
||||||
|
|
||||||
return $request->wantsJson()
|
return $request->wantsJson()
|
||||||
? new JsonResponse([], 201)
|
? new JsonResponse([], 201)
|
||||||
: redirect($this->redirectPath());
|
: redirect($this->redirectPath());
|
||||||
|
@ -67,7 +67,7 @@ public function store(Request $request): RedirectResponse
|
|||||||
*/
|
*/
|
||||||
public function show($affiliate): RedirectResponse
|
public function show($affiliate): RedirectResponse
|
||||||
{
|
{
|
||||||
$redirect = redirect()->route('index');
|
$redirect = redirect()->route('register');
|
||||||
|
|
||||||
$affiliate = Affiliates::where('uuid', $affiliate)->first();
|
$affiliate = Affiliates::where('uuid', $affiliate)->first();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user