From 36e0b0263933963034efa972ecc1d2d70b795b9f Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Fri, 27 Jun 2025 17:59:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Adapters/ChuKeBao/Adapter.php | 26 ++++++------------- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/Server/extend/WeChatDeviceApi/Adapters/ChuKeBao/Adapter.php b/Server/extend/WeChatDeviceApi/Adapters/ChuKeBao/Adapter.php index 93d01b19..67806ef3 100644 --- a/Server/extend/WeChatDeviceApi/Adapters/ChuKeBao/Adapter.php +++ b/Server/extend/WeChatDeviceApi/Adapters/ChuKeBao/Adapter.php @@ -428,26 +428,16 @@ class Adapter implements WeChatServiceInterface // getCustomerAcquisitionTask public function getCustomerAcquisitionTask($id) { - // 先读取缓存 - - $task_info = Cache::get('task_info_' . $id); - if (empty($task_info)) { - $task_info = Db::name('customer_acquisition_task') - ->where('id', $id) - ->find(); - if ($task_info) { - $task_info['sceneConf'] = json_decode($task_info['sceneConf'], true); - $task_info['reqConf'] = json_decode($task_info['reqConf'], true); - $task_info['msgConf'] = json_decode($task_info['msgConf'], true); - $task_info['tagConf'] = json_decode($task_info['tagConf'], true); - Cache::set('task_info_' . $id, $task_info, 600); - - } else { - return []; - } + $task_info = Db::name('customer_acquisition_task') + ->where('id', $id) + >find(); + if ($task_info) { + $task_info['sceneConf'] = json_decode($task_info['sceneConf'], true); + $task_info['reqConf'] = json_decode($task_info['reqConf'], true); + $task_info['msgConf'] = json_decode($task_info['msgConf'], true); + $task_info['tagConf'] = json_decode($task_info['tagConf'], true); } - return $task_info; }