From af5a4bec77fb5515eebcac2010fb401787e53ffa Mon Sep 17 00:00:00 2001 From: tangwch Date: Thu, 10 Oct 2019 11:32:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auth_new.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth_new.php b/auth_new.php index abfe40a..7671f49 100644 --- a/auth_new.php +++ b/auth_new.php @@ -45,7 +45,7 @@ function getSign($data, $secret) { $post_data['sign'] = getSign($post_data, $appSecret); $jsonStr = json_encode($post_data); curl_setopt($curl, CURLOPT_POSTFIELDS, $jsonStr); -curl_setopt($ch, CURLOPT_HTTPHEADER, array( +curl_setopt($curl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json; charset=utf-8', 'Content-Length: ' . strlen($jsonStr) )