From c2a06f67585281ead8a8a116a5488282a5c5607b Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sat, 6 Jul 2024 16:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E6=9A=82=E6=97=B6=E5=B0=86=E5=8F=91?= =?UTF-8?q?=E9=80=81=E7=9A=84openid=E5=86=99=E6=AD=BB?= 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 85311ed1..d0460144 100644 --- a/extend/weixin/Getgzopenid.php +++ b/extend/weixin/Getgzopenid.php @@ -81,8 +81,9 @@ class Getgzopenid $token_url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=".$access_token; foreach($goods_msg as $key=>$value){ foreach($value['goodscontact'] as $k=>$v){ + // TODO 暂时将openid写死,因为后端在这一块设计的不好,这里的open_id是张姐的 $data=[ - "touser" => $v['open_id'], + "touser" => $v['open_id'] ? $v['open_id'] : 'oUzra6HlpaARciJpUk8eeUxFayPk', "template_id"=>"oWpOaEVOgiORQ4bDj9d5u98YMhWWyuShrxECO5RKBW8", "data"=>[ "thing2"=>["value"=>$user_msg['contact']],