Authored by 周少峰

motice 报错

... ... @@ -383,6 +383,7 @@ class UserModel
// 调用接口获取YOHO币
$yohoCoin = UserData::yohoCoinData($uid, $page, $limit, 'post');
// 处理YOHO币数据
if(isset($yohoCoin['data']) && !empty($yohoCoin['data'])){
$coinList = $yohoCoin['data']['coinlist'];
$data['money'] = $yohoCoin['data']['total'];
foreach($coinList as $key => $val){
... ... @@ -393,6 +394,7 @@ class UserModel
}
$result[$key]['count'] = $val['num'];
}
}
$data['list'] = $result;
return $data;
}
... ...