Commit 72fc0a4b authored by wxl's avatar wxl

no message

parent 0a42c550
......@@ -69,7 +69,7 @@ class Users extends Common
/*$count1=Db::name('member_guanzhu')->where("uid = ".$this->uid ." and gz_uid = ".$uid .") or ( uid = ".$uid ." and gz_uid = ".$this->uid)->count();
$count2=$count1>1?0:1;$count==0?2:$count2*/
$count1=Db::name('member_guanzhu')->where(['gz_uid'=>$this->uid,'uid'=>$uid])->count();//被人关注
$count2=$count>0&&$count1>0?0:$count>0?1:$count1>0?2:2;
$count2=$count>0&&$count1>0?0:$count>0?1:2;
$data['is_guanzhu']=$count2;
$this->success(['data'=>$article,'favorite'=>$favorite,'info'=>$data]);
}
......
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