|
@@ -2084,7 +2084,7 @@ class User extends Api
|
|
|
$post_data = json_encode($post_data, 320);
|
|
|
|
|
|
//获取鉴权token
|
|
|
- $sign_bytes = '/bizauth/phone/auth' . $this->base16_encode(md5($post_data));
|
|
|
+ /*$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 = hash_hmac('sha256', $sign_bytes, base64_decode(config('pay_appkey')), false);
|
|
|
$header = [
|
|
@@ -2102,7 +2102,8 @@ class User extends Api
|
|
|
} else {
|
|
|
$data['is_vip'] = 0;
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ $data['is_vip'] = 0;
|
|
|
|
|
|
if ($this->auth->is_vip != $data['is_vip']) {
|
|
|
Db::name('user')->where(['id' => $this->auth->id])->setField('is_vip', $data['is_vip']);
|