Showing
1 changed file
with
2 additions
and
0 deletions
@@ -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 | } |
-
Please register or login to post a comment