Commit c9b83ec0 authored by wxl's avatar wxl

no message

parent 09cb9983
......@@ -50,7 +50,7 @@ class Users extends Common
foreach ($article as $key=>$val){
$article[$key]['user']=Db::name('member')->field('nickname,img')->where(['id'=>$val['uid']])->cache(_cache('db'))->find();
$zan=Db::name('article_zan')->where(['uid'=>$this->uid,'aid'=>$val['id']])->fetchSql(false)->find();
$favorite[$key]['is_zan']=isset($zan['zan'])==1?true:false;
$article[$key]['is_zan']=isset($zan['zan'])==1?true:false;
}
$favorite=db('article_zan')->alias('f')->join('article b','f.aid=b.id')
......
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