From 721e6b4dab24c632914cb53413be5a5872b1efc3 Mon Sep 17 00:00:00 2001 From: Hai Zheng Date: Mon, 16 Sep 2024 13:57:18 -0400 Subject: [PATCH] Used wp_pk instead of signature for QC service API talk --- src/cloud.cls.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/cloud.cls.php b/src/cloud.cls.php index f23a0776e..4491bb594 100644 --- a/src/cloud.cls.php +++ b/src/cloud.cls.php @@ -978,17 +978,18 @@ private function _post($service, $data = false, $time_out = false) } // Encrypt service as signature - $signature_ts = time(); - $sign_data = array( - 'service_tag' => $service_tag, - 'ts' => $signature_ts, - ); - $data['signature_b64'] = $this->_sign_b64(implode('', $sign_data)); - $data['signature_ts'] = $signature_ts; + // $signature_ts = time(); + // $sign_data = array( + // 'service_tag' => $service_tag, + // 'ts' => $signature_ts, + // ); + // $data['signature_b64'] = $this->_sign_b64(implode('', $sign_data)); + // $data['signature_ts'] = $signature_ts; $param = array( 'site_url' => home_url(), 'main_domain' => !empty($this->_summary['main_domain']) ? $this->_summary['main_domain'] : '', + 'wp_pk' => !empty($this->_summary['pk_b64']) ? $this->_summary['pk_b64'] : '', 'ver' => Core::VER, 'data' => $data, );