Authored by 郭成尧

'切换接口地址'

... ... @@ -14,7 +14,7 @@ use Api\Yohobuy;
class CouponData
{
const API_URL = 'http://api.open.yohobuy.com/';
// const API_URL = 'http://api.open.yohobuy.com/';
/**
* 获取领券楼层数据
... ... @@ -32,7 +32,7 @@ class CouponData
$param['uid'] = $uid;
}
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(self::API_URL, $param);
return Yohobuy::get(Yohobuy::API_URL, $param);
}
... ... @@ -48,7 +48,7 @@ class CouponData
$param['couponId'] = $couponId;
$param['uid'] = $uid;
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(self::API_URL, $param);
return Yohobuy::get(Yohobuy::API_URL, $param);
}
/**
... ...