Commit 53473801 by 冷斌

fix bug

parent ce542f4c
...@@ -61,6 +61,8 @@ class LevelController extends HomebaseController { ...@@ -61,6 +61,8 @@ class LevelController extends HomebaseController {
$Level_a=M("experlevel_anchor"); $Level_a=M("experlevel_anchor");
$levelinfo_a=$Level_a->where("level_up>'{$userinfo['votestotal']}'")->order("levelid asc")->find(); $levelinfo_a=$Level_a->where("level_up>'{$userinfo['votestotal']}'")->order("levelid asc")->find();
var_dump($levelinfo_a);
die;
if(!$levelinfo_a){ if(!$levelinfo_a){
$Level_a['levelid'] = $Level_a['levelid'] > 1 ? ($Level_a['levelid']-1) : $Level_a['levelid']; $Level_a['levelid'] = $Level_a['levelid'] > 1 ? ($Level_a['levelid']-1) : $Level_a['levelid'];
$levelinfo_a=$Level_a->order("levelid desc")->find(); $levelinfo_a=$Level_a->order("levelid desc")->find();
......
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