Commit aa29748a by 冷斌

update

parent f8d1384b
...@@ -29,6 +29,8 @@ class LevelController extends HomebaseController { ...@@ -29,6 +29,8 @@ class LevelController extends HomebaseController {
if(!$levelinfo){ if(!$levelinfo){
$levelinfo=$Level->order("levelid desc")->find(); $levelinfo=$Level->order("levelid desc")->find();
} }
var_dump($levelinfo['level_up'], $userinfo['consumption']);
die;
$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