From 107fbed7b4561e318083db5995bed459d07afd17 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 6 Nov 2024 17:07:48 +0800 Subject: [PATCH] 1 --- webapp/controller/ToolsController.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webapp/controller/ToolsController.class.php b/webapp/controller/ToolsController.class.php index 8267bb42..71d5c548 100644 --- a/webapp/controller/ToolsController.class.php +++ b/webapp/controller/ToolsController.class.php @@ -556,4 +556,12 @@ class ToolsController extends BaseController { }); } + public function genAndroid() + { + mt\Robot::traverse(function ($meta) { + echo 'INSERT INTO t_android(name, createtime, modifytime)VALUES(`' . $meta['name'] . '`,' . myself()->_getNowTime() . ',' . myself()->_getNowTime() . ");\n"; + return true; + }); + } + }