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; + }); + } + }