Authored by 周少峰

motice 报错

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