This commit is contained in:
邓皓元 2019-04-09 17:56:36 +08:00
parent 9366f59cc2
commit a7edd554f0

View File

@ -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('出现重复销售卡');
}