修改有货币接口返回的数据结构以及模板展示方式
Code Review By Rock Zhang
Showing
2 changed files
with
7 additions
and
1 deletions
@@ -10,10 +10,12 @@ | @@ -10,10 +10,12 @@ | ||
10 | 个 YOHO 币 | 10 | 个 YOHO 币 |
11 | </p> | 11 | </p> |
12 | <a href="/home/currencyDetail" class="more">查看明细</a> | 12 | <a href="/home/currencyDetail" class="more">查看明细</a> |
13 | + {{#notice}} | ||
13 | <div class="coin-tip"> | 14 | <div class="coin-tip"> |
14 | <span class="icon">!</span> | 15 | <span class="icon">!</span> |
15 | {{notice}} | 16 | {{notice}} |
16 | </div> | 17 | </div> |
18 | + {{/notice}} | ||
17 | {{/ yohoCoin}} | 19 | {{/ yohoCoin}} |
18 | </div> | 20 | </div> |
19 | <div class="banner"> | 21 | <div class="banner"> |
@@ -360,7 +360,11 @@ class UserModel | @@ -360,7 +360,11 @@ class UserModel | ||
360 | */ | 360 | */ |
361 | public static function getYohoCoinData($uid) | 361 | public static function getYohoCoinData($uid) |
362 | { | 362 | { |
363 | - $result = array(); | 363 | + $result = array( |
364 | + 'yohoCoin' => array( | ||
365 | + 'coinNum' => 0 | ||
366 | + ) | ||
367 | + ); | ||
364 | 368 | ||
365 | // 调用接口获取YOHO币 | 369 | // 调用接口获取YOHO币 |
366 | $yohoCoin = UserData::yohoCoinTotal($uid); | 370 | $yohoCoin = UserData::yohoCoinTotal($uid); |
-
Please register or login to post a comment