From 65478b9ba180d708fda8e6dfe3fecc2f292cf6cf Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Tue, 13 Aug 2024 10:29:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/weixin/Getgzopenid.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extend/weixin/Getgzopenid.php b/extend/weixin/Getgzopenid.php index 6b2274fd..7588813e 100755 --- a/extend/weixin/Getgzopenid.php +++ b/extend/weixin/Getgzopenid.php @@ -93,7 +93,7 @@ class Getgzopenid $str = mb_substr($str, 0, $max_length - mb_strlen($replacement)) . $replacement; } $data=[ - "touser" => $v['open_id'] ? $v['open_id'] : 'oUzra6HlpaARciJpUk8eeUxFayPk' , + "touser" => $v['open_id'] ?: 'oUzra6HlpaARciJpUk8eeUxFayPk' , "template_id"=>"oWpOaEVOgiORQ4bDj9d5u98YMhWWyuShrxECO5RKBW8", "data"=>[ "thing2"=>["value"=>$user_msg['contact']], @@ -104,6 +104,7 @@ class Getgzopenid ] ]; $data = json_encode($data); + dump($data);die; $token_data = $this->http($token_url,'POST',$data); } }