|
@@ -124,7 +124,6 @@ class OrderService
|
|
*/
|
|
*/
|
|
public function createOrder(int $userId, array $data): array
|
|
public function createOrder(int $userId, array $data): array
|
|
{
|
|
{
|
|
- // TODO:检测技师可服务时间段
|
|
|
|
return DB::transaction(function () use ($userId, $data) {
|
|
return DB::transaction(function () use ($userId, $data) {
|
|
// 1. 参数校验
|
|
// 1. 参数校验
|
|
$user = MemberUser::where('id', $userId)
|
|
$user = MemberUser::where('id', $userId)
|