|
@@ -2011,12 +2011,12 @@ class User extends Api
|
|
|
$this->error('参数缺失');
|
|
|
}
|
|
|
|
|
|
- $url = 'http://10.12.5.61:8088/bussiness/1.0/hdc/svc/sso/loginUserInfo/cmtokenid/' . $user_token;
|
|
|
+ $url = 'http://' . config('pingtai_ip') . '/bussiness/1.0/hdc/svc/sso/loginUserInfo/cmtokenid/' . $user_token;
|
|
|
//获取鉴权token
|
|
|
$sign_bytes = '/1.0/hdc/svc/sso/loginUserInfo/cmtokenid/' . $user_token;
|
|
|
$hdc_token = base64_encode(hash_hmac('sha256', $sign_bytes, config('pingtai_appkey'), true));
|
|
|
$header = [
|
|
|
- 'Host:10.12.5.61:8088',
|
|
|
+ 'Host:' . config('pingtai_ip'),
|
|
|
'Content-Type:application/json',
|
|
|
'Authorization: HDCAUTH appid="' . config('pingtai_appid') . '",token="' . $hdc_token . '"'
|
|
|
];
|
|
@@ -2069,7 +2069,7 @@ class User extends Api
|
|
|
$data['gender'] = $user['gender']; //性别:1=男,2=女
|
|
|
$data['birthday'] = date('Y-m-d', $user['birthday']); //生日
|
|
|
//查询vip是否到期
|
|
|
- $url = 'http://10.12.5.61:8070/HDC/bizauth/phone/auth';
|
|
|
+ $url = 'http://' . config('pay_ip') . '/HDC/bizauth/phone/auth';
|
|
|
$post_data = [
|
|
|
'phoneNumber' => $this->auth->mobile,
|
|
|
'productCodes' => [config('product_code')],
|
|
@@ -2082,7 +2082,7 @@ class User extends Api
|
|
|
// $hdc_token = base64_encode(hash_hmac('sha256', $sign_bytes, config('pay_appkey'), true));
|
|
|
$hdc_token = hash_hmac('sha256', $sign_bytes, base64_decode(config('pay_appkey')), false);
|
|
|
$header = [
|
|
|
- 'Host:10.12.5.61:8070',
|
|
|
+ 'Host:' . config('pay_ip'),
|
|
|
'Content-Type:application/json',
|
|
|
'Authorization: HDCAUTH appid="' . config('pay_appid') . '",token="' . $hdc_token . '"'
|
|
|
];
|