Authored by Rock Zhang

给个人中心各数据的数目添加默认值

Code Review By Rock Zhang
@@ -51,7 +51,19 @@ class UserModel @@ -51,7 +51,19 @@ class UserModel
51 */ 51 */
52 public static function getInfoNumData($uid, $udid) 52 public static function getInfoNumData($uid, $udid)
53 { 53 {
54 - $result = array(); 54 + $result = array(
  55 + 'wait_pay_num' => 0,
  56 + 'wait_cargo_num' => 0,
  57 + 'send_cargo_num' => 0,
  58 + 'brand_favorite_total' => 0,
  59 + 'product_favorite_total' => 0,
  60 + 'inbox_total' => 0,
  61 + 'comment_total' => 0,
  62 + 'refund_exchange_num' => 0,
  63 + 'yoho_coin_num' => 0,
  64 + 'coupon_num' => 0,
  65 + 'product_browse' => 0
  66 + );
55 67
56 // 调用接口获取个人中心页面优惠券,收藏的商品等的数目数据 68 // 调用接口获取个人中心页面优惠券,收藏的商品等的数目数据
57 $infoNumData = UserData::infoNum($uid, $udid); 69 $infoNumData = UserData::infoNum($uid, $udid);