This commit is contained in:
parent
cd10b62e27
commit
80ffd8991e
@ -23,8 +23,10 @@ public function testdrive(Request $request)
|
|||||||
$requestId = Str::uuid();
|
$requestId = Str::uuid();
|
||||||
$request->merge(['request_id' => $requestId]);
|
$request->merge(['request_id' => $requestId]);
|
||||||
|
|
||||||
$model = (new TestdriveCreateAction())->execute($request);
|
$exists = Testdrive::query()->where('mobile', $request->input('mobile'))->exists();
|
||||||
// TestdrivePushJob::dispatch($model);
|
throw_if($exists, ValidationException::withMessages(['mobile' => '手机号已存在']));
|
||||||
|
|
||||||
|
(new TestdriveCreateAction())->execute($request);
|
||||||
|
|
||||||
return response()->json(['code' => 0, 'message' => '提交成功', 'request_id' => $requestId]);
|
return response()->json(['code' => 0, 'message' => '提交成功', 'request_id' => $requestId]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user