From 96f2baf1df979196a7959539b723175e601a0416 Mon Sep 17 00:00:00 2001 From: jcadmin Date: Sun, 5 Jul 2026 09:34:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=8D=E6=9D=82=E6=96=B9?= =?UTF-8?q?=E6=A1=88=E7=BB=84=E5=90=88=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/JclqService.php | 14 ++++++++++++++ app/Service/JczqService.php | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/app/Service/JclqService.php b/app/Service/JclqService.php index 6d3f6e88..3be33d2e 100755 --- a/app/Service/JclqService.php +++ b/app/Service/JclqService.php @@ -30,6 +30,7 @@ use App\Model\Seller\Seller; use App\Utils\Helps; use App\Utils\ThrowException; use Illuminate\Support\Arr; +use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; @@ -436,6 +437,19 @@ class JclqService implements IJingcai */ public function validZuHe($allowPlanNum, $data, $combinationLen=2) { + + $inputData = []; + foreach ($data as $id => $item) { + if (count($item) == 1) { + $itemValues = array_values($item); + if (isset($itemValues[0]) && count($itemValues[0]) == 1) { + continue; + } + } + $inputData[$id] = $item; + } + $data = $inputData; + $oddsMatch = $this->generateCombinationInput($data); $zuhes = Helps::getCombinationData($oddsMatch, $combinationLen); if (count($zuhes) > $allowPlanNum) { diff --git a/app/Service/JczqService.php b/app/Service/JczqService.php index 9d8d9220..4d955871 100755 --- a/app/Service/JczqService.php +++ b/app/Service/JczqService.php @@ -23,6 +23,7 @@ use App\Model\Zq\JczqResult; use App\Utils\Helps; use App\Utils\ThrowException; use Illuminate\Support\Arr; +use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; @@ -1006,6 +1007,19 @@ class JczqService implements IJingcai */ public function validZuHe($allowPlanNum, $data, $combinationLen=2) { + + $inputData = []; + foreach ($data as $id => $item) { + if (count($item) == 1) { + $itemValues = array_values($item); + if (isset($itemValues[0]) && count($itemValues[0]) == 1) { + continue; + } + } + $inputData[$id] = $item; + } + $data = $inputData; + $oddsMatch = $this->generateCombinationInput($data); $zuhes = Helps::getCombinationData($oddsMatch, $combinationLen); if (count($zuhes) > $allowPlanNum) {