Authored by Rock Zhang

修改有货币接口返回的数据结构以及模板展示方式

Code Review By Rock Zhang
... ... @@ -10,10 +10,12 @@
YOHO
</p>
<a href="/home/currencyDetail" class="more">查看明细</a>
{{#notice}}
<div class="coin-tip">
<span class="icon">!</span>
{{notice}}
</div>
{{/notice}}
{{/ yohoCoin}}
</div>
<div class="banner">
... ...
... ... @@ -360,7 +360,11 @@ class UserModel
*/
public static function getYohoCoinData($uid)
{
$result = array();
$result = array(
'yohoCoin' => array(
'coinNum' => 0
)
);
// 调用接口获取YOHO币
$yohoCoin = UserData::yohoCoinTotal($uid);
... ...