Authored by Rock Zhang

修复品牌列表页收藏状态错误的bug(uid为空时也传递到接口导致,改为不传uid参数)

Code Review By Rock Zhang
@@ -96,7 +96,11 @@ class BrandData @@ -96,7 +96,11 @@ class BrandData
96 // 构建必传参数 96 // 构建必传参数
97 $param = Yohobuy::param(); 97 $param = Yohobuy::param();
98 $param['brand_id'] = $brandId; 98 $param['brand_id'] = $brandId;
99 - $param['uid'] = $uid; 99 +
  100 + if (!empty($uid)) {
  101 + $param['uid'] = $uid;
  102 + }
  103 +
100 $param['method'] = 'app.brand.getBrandIntro'; 104 $param['method'] = 'app.brand.getBrandIntro';
101 $param['client_secret'] = Sign::getSign($param); 105 $param['client_secret'] = Sign::getSign($param);
102 106