Commit 97ee599c by 冷斌

fix bug

parent 1d1b5618
......@@ -1121,7 +1121,32 @@ class Api_Live extends PhalApi_Api {
"banker_coin"=>"0",
);
$info=array(
$familyinfo=DI()->notorm->users_family
->where('uid=?',$liveuid)
->fetchOne();
$familyinfo2 = DI()->notorm->family
->where('uid=?',$liveuid)
->fetchOne();
$familyid = $familyName = '';
if (!empty($familyinfo2)) {
$familyid = $familyinfo2['id'];
}
if (!empty($familyinfo)) {
$familyid = $familyinfo['familyid'];
}
if ($familyid > 0) {
$family = DI()->notorm->family
->where('id=?',$familyid)
->fetchOne();
$familyName = $family['name'];
}
$info=array(
'votestotal'=>$userlists['votestotal'],
'barrage_fee'=>$configpri['barrage_fee'],
'userlist_time'=>$configpri['userlist_time'],
......@@ -1148,6 +1173,7 @@ class Api_Live extends PhalApi_Api {
'liang'=>$userinfo['liang'],
'issuper'=>(string)$issuper,
'usertype'=>(string)$usertype,
'family_name' => $familyName,
);
$info['isattention']=(string)isAttention($uid,$liveuid);
$info['userlists']=$userlists['userlist'];
......
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