From f61441bcba28a5ae389eebc2c55d7e721cdc111e Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:14:51 +0800 Subject: [PATCH] 1 --- app/common/library/wxserver/Server.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index f0d6b8b0..5a743845 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -651,6 +651,7 @@ class Server $data['item_list'] = $this->getAllCategory($appid); $result = $this->curlPost($url, json_encode($data)); $result = json_decode($result, true); + Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($result), 'created_at' => date('Y-m-d H:i:s')]); if (!empty($result) && intval($result['errcode']) == 0 && !empty($result['auditid'])) { $model = new WxserverAccount(); $up['audit_status'] = 1; @@ -660,6 +661,7 @@ class Server $model->update($up, ['appid' => $appid]); return true; } + } return false; }