Commit eb017717 by 冷斌

update

parent adc15add
...@@ -128,6 +128,8 @@ class LuckrateController extends AdminbaseController { ...@@ -128,6 +128,8 @@ class LuckrateController extends AdminbaseController {
$this->error('相同数量、倍数的配置已存在'); $this->error('相同数量、倍数的配置已存在');
} }
$check = $jackpot->where("giftid='{$giftid}' and id!={$id}")->sum('rate'); $check = $jackpot->where("giftid='{$giftid}' and id!={$id}")->sum('rate');
var_dump(($check + I('rate')), $check, I('rate'));
die;
if(($check + I('rate')) > 100){ if(($check + I('rate')) > 100){
// $this->error('相同数量、倍数的配置已存在'); // $this->error('相同数量、倍数的配置已存在');
$this->error('中奖概率大于100%'); $this->error('中奖概率大于100%');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment