make(CardBatchServices::class)->allocationCode($id); } catch (\Throwable $e) { response_log_write([ 'message' => '卡密分配数量统计失败:' . $e->getMessage(), 'file' => $e->getFile(), 'line' => $e->getLine() ]); } return true; } /** * 校验使用数量 * @param $id * @return true * User: liusl * DateTime: 2025/5/24 10:57 */ public function allocationCardGift($id) { try { app()->make(CardGiftServices::class)->allocationCardGift($id); } catch (\Throwable $e) { response_log_write([ 'message' => '卡密分配数量统计失败:' . $e->getMessage(), 'file' => $e->getFile(), 'line' => $e->getLine() ]); } return true; } }