Commit 61b84ad4 by 冷斌

fix bug

parent a1872fdd
......@@ -10,7 +10,8 @@ class WelfareController extends AdminbaseController
function getGift(){
$key='getGiftList';
$rs = getcaches($key);
// $rs = getcaches($key);
$rs = [];
if (empty($rs)) {
$rs=M('gift')
->field("id,type,mark,giftname,needcoin,gifticon")
......@@ -21,7 +22,7 @@ class WelfareController extends AdminbaseController
$rs[$k]['gifticon']=get_upload_path($v['gifticon']);
}
if(!empty($rs)){
setcaches($key,$rs);
// setcaches($key,$rs);
}
}
return $rs;
......
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