diff --git a/app/Domains/Virtual/Services/OrderService.php b/app/Domains/Virtual/Services/OrderService.php index ae5cf11b..426dafd3 100644 --- a/app/Domains/Virtual/Services/OrderService.php +++ b/app/Domains/Virtual/Services/OrderService.php @@ -268,7 +268,7 @@ class OrderService extends Service app(RealOrderCardPartitionRepository::class)->forgetCached(); } catch (\Exception $e) { DB::rollBack(); - throw new HttpException('操作失败'); + throw $e; } } @@ -753,7 +753,7 @@ class OrderService extends Service } foreach (array_chunk($data, 1000) as $value) { - if ($table === 'virtual_order_cards' && DB::table($table)->where('sim', array_pluck($value, 'sim'))->whereNotNull('deleted_at')->count()) { + if ($table === 'virtual_order_cards' && DB::table($table)->whereIn('sim', array_pluck($value, 'sim'))->whereNotNull('deleted_at')->count()) { throw new ExistedException('出现重复销售卡'); }