From 26ba763997109e10d6311c542162f5b94acfd5b1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 6 Nov 2024 17:22:37 +0800 Subject: [PATCH] 1 --- webapp/controller/ToolsController.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/controller/ToolsController.class.php b/webapp/controller/ToolsController.class.php index 220429ac..6bdf259f 100644 --- a/webapp/controller/ToolsController.class.php +++ b/webapp/controller/ToolsController.class.php @@ -533,6 +533,10 @@ class ToolsController extends BaseController { 'name' => $meta['name'] ) ); + if (array_key_exists($meta['name'], $data)) { + return true; + } + $data[$meta['name']] = $meta; if (!$row) { echo 'INSERT INTO t_android(robot_id, name, createtime, modifytime)VALUES(' . $meta['id'] . ",'" . $meta['name'] . "'," . myself()->_getNowTime() . ',' . myself()->_getNowTime() . ");\n";