|
@@ -2047,7 +2047,7 @@ class User extends Api
|
|
|
$data['gender'] = $user['gender']; //性别:1=男,2=女
|
|
|
$data['birthday'] = date('Y-m-d', $user['birthday']); //生日
|
|
|
//查询vip是否到期
|
|
|
- $url = 'http://183.207.215.112:8090/HDC/bizauth/phone/auth';
|
|
|
+ $url = 'http://10.12.5.61:8070/HDC/bizauth/phone/auth';
|
|
|
$post_data = [
|
|
|
'phoneNumber' => $this->auth->mobile,
|
|
|
'productCodes' => [config('product_code')],
|
|
@@ -2057,11 +2057,12 @@ class User extends Api
|
|
|
|
|
|
//获取鉴权token
|
|
|
$sign_bytes = '/bizauth/phone/auth' . $this->base16_encode(md5($post_data));
|
|
|
- $hdc_token = base64_encode(hash_hmac('sha256', $sign_bytes, config('pay_appkey'), true));
|
|
|
+// $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:112.4.10.122:8090',
|
|
|
+ 'Host:10.12.5.61:8070',
|
|
|
'HDC-Service:2',
|
|
|
- 'HDC-APPID:00001',
|
|
|
+ 'HDC-APPID:' . config('pay_appid'),
|
|
|
'HDC-Token:' . $hdc_token,
|
|
|
'Content-Type:application/json'
|
|
|
];
|