From 6e295949a5e99cb6398f1533c767dd557a2d3fd3 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Thu, 11 Apr 2024 14:08:19 +0800 Subject: [PATCH] 1 --- app/api/controller/Wxserver.php | 2 +- app/common/library/wxserver/Server.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/api/controller/Wxserver.php b/app/api/controller/Wxserver.php index c268e71e..735c1a39 100644 --- a/app/api/controller/Wxserver.php +++ b/app/api/controller/Wxserver.php @@ -18,7 +18,7 @@ class Wxserver extends BaseController $appid = 'wx74c7a92ae5ffbcb6'; $template_id = 6; $obj = new \app\common\library\wxserver\Server(); - $arr = $obj->commit($appid, $template_id); + $arr = $obj->getQrcode($appid); return $this->renderSuccess(['arr' => $arr]); } diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 80a13d8b..80c288c0 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -229,8 +229,6 @@ class Server $url = 'https://api.weixin.qq.com/wxa/commit?access_token=' . $access_token; $result = $this->curlPost($url, json_encode($data)); $result = json_decode($result, true); - dump($result); - exit(); if ($result && !empty($result['errmsg']) && $result['errmsg'] == 'ok') { //体验码 $qr_code = $this->getQrcode($appid);