Showing
1 changed file
with
3 additions
and
3 deletions
@@ -14,7 +14,7 @@ use Api\Yohobuy; | @@ -14,7 +14,7 @@ use Api\Yohobuy; | ||
14 | class CouponData | 14 | class CouponData |
15 | { | 15 | { |
16 | 16 | ||
17 | - const API_URL = 'http://api.open.yohobuy.com/'; | 17 | +// const API_URL = 'http://api.open.yohobuy.com/'; |
18 | 18 | ||
19 | /** | 19 | /** |
20 | * 获取领券楼层数据 | 20 | * 获取领券楼层数据 |
@@ -32,7 +32,7 @@ class CouponData | @@ -32,7 +32,7 @@ class CouponData | ||
32 | $param['uid'] = $uid; | 32 | $param['uid'] = $uid; |
33 | } | 33 | } |
34 | $param['client_secret'] = Sign::getSign($param); | 34 | $param['client_secret'] = Sign::getSign($param); |
35 | - return Yohobuy::get(self::API_URL, $param); | 35 | + return Yohobuy::get(Yohobuy::API_URL, $param); |
36 | } | 36 | } |
37 | 37 | ||
38 | 38 | ||
@@ -48,7 +48,7 @@ class CouponData | @@ -48,7 +48,7 @@ class CouponData | ||
48 | $param['couponId'] = $couponId; | 48 | $param['couponId'] = $couponId; |
49 | $param['uid'] = $uid; | 49 | $param['uid'] = $uid; |
50 | $param['client_secret'] = Sign::getSign($param); | 50 | $param['client_secret'] = Sign::getSign($param); |
51 | - return Yohobuy::get(self::API_URL, $param); | 51 | + return Yohobuy::get(Yohobuy::API_URL, $param); |
52 | } | 52 | } |
53 | 53 | ||
54 | /** | 54 | /** |
-
Please register or login to post a comment