Commit 5a1b7611 by 冷斌

fix bug

parent 8716df85
......@@ -503,14 +503,14 @@ class Model_Live extends PhalApi_Model_NotORM {
public function getWelfare()
{
$key='welfare_rate';
$rs = getcaches($key);
if (empty($rs)) {
$rs=DI()->notorm->welfare_rate->where('id!=1')->order("rate desc")->fetchAll();
if(!empty($rs)){
setcaches($key,$rs);
}
}
// $key='welfare_rate';
// $rs = getcaches($key);
// if (empty($rs)) {
// if(!empty($rs)){
// setcaches($key,$rs);
// }
// }
$rs=DI()->notorm->welfare_rate->where('id!=1')->order("rate desc")->fetchAll();
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