Commit 3b9a3f2f by 冷斌

支付宝

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