Commit e786294a by 冷斌

update

parent 8f2a64b3
...@@ -74,7 +74,9 @@ class LuckrateController extends AdminbaseController { ...@@ -74,7 +74,9 @@ class LuckrateController extends AdminbaseController {
} }
// $check = $jackpot->where("giftid='{$giftid}' and nums='{$nums}' and times = '{$times}'")->find(); // $check = $jackpot->where("giftid='{$giftid}' and nums='{$nums}' and times = '{$times}'")->find();
$check = $jackpot->where("giftid='{$giftid}'")->find(); $check = $jackpot->where("giftid='{$giftid}'")->sum('rate');
var_dump($check);
die;
if($check){ if($check){
// $this->error('相同数量、倍数的配置已存在'); // $this->error('相同数量、倍数的配置已存在');
$this->error('配置已存在'); $this->error('配置已存在');
......
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