From a8d0d4c9d51c69329ead3b741b9781bc15a30867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AF=92=E5=86=B0?= Date: Thu, 18 Nov 2021 07:56:29 +0000 Subject: [PATCH 1/4] =?UTF-8?q?update=20crmeb/app/services/activity/lotter?= =?UTF-8?q?y/LuckPrizeServices.php.=20=E6=8A=BD=E5=A5=96=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?bug=EF=BC=8C=E5=BD=93=E9=9A=8F=E6=9C=BA=E6=95=B0=3D$totalChance?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E6=97=A0=E6=B3=95=E5=8F=96=E5=88=B0=E9=9A=8F?= =?UTF-8?q?=E6=9C=BA=EF=BC=8C=E5=BA=94=E5=87=8F1=E3=80=82=200=E5=88=B0$tot?= =?UTF-8?q?alChance-1=20=E8=BF=99=E6=A0=B7=E6=89=8D=E8=83=BD=E8=B7=9F?= =?UTF-8?q?=E2=80=9Cif=20($prizeChance=20>=3D=20$startChance=20&&=20$prize?= =?UTF-8?q?Chance=20<=20$newStartChance)=20{=E2=80=9D=20=E8=BF=99=E8=A1=8C?= =?UTF-8?q?=E7=9A=84$prizeChance=20<=20$newStartChance=20=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E4=B8=BAtrue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/activity/lottery/LuckPrizeServices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/services/activity/lottery/LuckPrizeServices.php b/crmeb/app/services/activity/lottery/LuckPrizeServices.php index d8b65f0fb..709aaf6cc 100644 --- a/crmeb/app/services/activity/lottery/LuckPrizeServices.php +++ b/crmeb/app/services/activity/lottery/LuckPrizeServices.php @@ -173,7 +173,7 @@ class LuckPrizeServices extends BaseServices if (!$totalChance) return $prize; $startChance = 0; mt_srand(); - $prizeChance = rand(0, $totalChance); + $prizeChance = rand(0, $totalChance-1); $newPrize = array_combine(array_column($data, 'type'), $data); foreach ($data as $item) { $newStartChance = $item['chance'] + $startChance; From 6c4b71626aec2365dc7d0bcc21a6326b3a491493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AF=92=E5=86=B0?= Date: Thu, 18 Nov 2021 08:02:10 +0000 Subject: [PATCH 2/4] =?UTF-8?q?update=20crmeb/app/model/activity/lottery/L?= =?UTF-8?q?uckLotteryRecord.php.=20=E6=95=B0=E6=8D=AE=E5=BA=93=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D=E5=86=99=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/model/activity/lottery/LuckLotteryRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/model/activity/lottery/LuckLotteryRecord.php b/crmeb/app/model/activity/lottery/LuckLotteryRecord.php index 2fcfd7071..b3f26b765 100644 --- a/crmeb/app/model/activity/lottery/LuckLotteryRecord.php +++ b/crmeb/app/model/activity/lottery/LuckLotteryRecord.php @@ -203,7 +203,7 @@ class LuckLotteryRecord extends BaseModel */ public function searchIsReceiveAttr($query, $value) { - if ($value !== '') $query->where('is_reveive', $value); + if ($value !== '') $query->where('is_receive', $value); } /** From 7b2b4ba96eeda62bcedc11a2aa73b77e0d763a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=86=E5=90=AC?= Date: Fri, 26 Nov 2021 08:27:08 +0000 Subject: [PATCH 3/4] update README.md. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5489ea853..362543e5d 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,7 @@ CRMEB Min是一款轻量级、高性能开源电商商城系统,采用TP6+Mysq 感谢大神们提交代码(排名不分先后) -### @yizhisamoye,@bys1123,@xaboy,@youngxj0,@jacklincheung,@392256866 +### @yizhisamoye,@bys1123,@xaboy,@youngxj0,@jacklincheung,@392256866,@@sxsea 欢迎反馈问题 [反馈问题](https://gitee.com/ZhongBangKeJi/CRMEB/issues)。 From da845278891f229395f6117ef8d82c2ac759f7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=86=E5=90=AC?= Date: Fri, 26 Nov 2021 08:27:33 +0000 Subject: [PATCH 4/4] update README.md. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 362543e5d..ba61e6144 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,7 @@ CRMEB Min是一款轻量级、高性能开源电商商城系统,采用TP6+Mysq 感谢大神们提交代码(排名不分先后) -### @yizhisamoye,@bys1123,@xaboy,@youngxj0,@jacklincheung,@392256866,@@sxsea +### @yizhisamoye,@bys1123,@xaboy,@youngxj0,@jacklincheung,@392256866,@sxsea 欢迎反馈问题 [反馈问题](https://gitee.com/ZhongBangKeJi/CRMEB/issues)。