Commit 796c288a by 冷斌

支付宝

parent 2b64b77c
......@@ -28,10 +28,7 @@ class LevelController extends HomebaseController {
$levelinfo=$Level->where("level_up>='{$userinfo['consumption']}'")->order("levelid asc")->find();
if(!$levelinfo){
$levelinfo=$Level->order("levelid desc")->find();
} else {
$lvid = $levelinfo['levelid']-1;
$levelinfo = $Level->where("levelid={$lvid}")->find();
}
}
$cha=$levelinfo['level_up']+1-$userinfo['consumption'];
if($cha>0)
{
......
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