Commit 97ee599c by 冷斌

fix bug

parent 1d1b5618
...@@ -1121,6 +1121,31 @@ class Api_Live extends PhalApi_Api { ...@@ -1121,6 +1121,31 @@ class Api_Live extends PhalApi_Api {
"banker_coin"=>"0", "banker_coin"=>"0",
); );
$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( $info=array(
'votestotal'=>$userlists['votestotal'], 'votestotal'=>$userlists['votestotal'],
'barrage_fee'=>$configpri['barrage_fee'], 'barrage_fee'=>$configpri['barrage_fee'],
...@@ -1148,6 +1173,7 @@ class Api_Live extends PhalApi_Api { ...@@ -1148,6 +1173,7 @@ class Api_Live extends PhalApi_Api {
'liang'=>$userinfo['liang'], 'liang'=>$userinfo['liang'],
'issuper'=>(string)$issuper, 'issuper'=>(string)$issuper,
'usertype'=>(string)$usertype, 'usertype'=>(string)$usertype,
'family_name' => $familyName,
); );
$info['isattention']=(string)isAttention($uid,$liveuid); $info['isattention']=(string)isAttention($uid,$liveuid);
$info['userlists']=$userlists['userlist']; $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