Commit 8102fbf8 by 冷斌

update

parent eb017717
......@@ -127,7 +127,7 @@ class LuckrateController extends AdminbaseController {
if($check){
$this->error('相同数量、倍数的配置已存在');
}
$check = $jackpot->where("giftid='{$giftid}' and id!={$id}")->sum('rate');
$check = M("luck_rate")->where("giftid='{$giftid}' and id!={$id}")->sum('rate');
var_dump(($check + I('rate')), $check, I('rate'));
die;
if(($check + I('rate')) > 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