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