Commit 35add9ca by 冷斌

add

parent 7be53f6a
......@@ -37,8 +37,6 @@ class Model_Home extends PhalApi_Model_NotORM {
public function getUserLabel($user)
{
$labels = $this->getImpressionLabel();
var_dump($user, $labels);
die;
$l = [];
$labelIds = [$user['label_id']];
foreach ($labels as $label) {
......
......@@ -477,7 +477,7 @@
// $info=getcaches("userinfo_".$uid);
// if(!$info){
$info=DI()->notorm->users
->select('id,user_nicename,avatar,avatar_thumb,sex,signature,coin,consumption,votestotal,province,city,birthday,user_status,issuper')
->select('id,user_nicename,avatar,avatar_thumb,sex,signature,coin,consumption,votestotal,province,city,birthday,user_status,issuper,label_id')
->where('id=? and user_type="2"',$uid)
->fetchOne();
if($info){
......@@ -505,6 +505,7 @@
$info['issuper']='0';
$info['level']='1';
$info['level_anchor']='1';
$info['label_id'] = '';
}
if($info){
setcaches("userinfo_".$uid,$info);
......
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