Authored by 郭成尧

uid处理

@@ -26,7 +26,9 @@ class CouponData @@ -26,7 +26,9 @@ class CouponData
26 $param = Yohobuy::param(); 26 $param = Yohobuy::param();
27 $param['method'] = 'app.promotion.queryCouponCenter'; 27 $param['method'] = 'app.promotion.queryCouponCenter';
28 $param['contentCode'] = $contentCode; 28 $param['contentCode'] = $contentCode;
  29 + if (!empty($uid) && $uid !== '' && $uid !== null) {
29 $param['uid'] = $uid; 30 $param['uid'] = $uid;
  31 + }
30 $param['client_secret'] = Sign::getSign($param); 32 $param['client_secret'] = Sign::getSign($param);
31 return Yohobuy::get(Yohobuy::API_URL, $param); 33 return Yohobuy::get(Yohobuy::API_URL, $param);
32 } 34 }