From 1da9e882b24144d03594436b41161cc5cc9ecd69 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 6 Nov 2024 16:59:02 +0800 Subject: [PATCH] 1 --- webapp/controller/ToolsController.class.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/webapp/controller/ToolsController.class.php b/webapp/controller/ToolsController.class.php index 2c1f644c..8267bb42 100644 --- a/webapp/controller/ToolsController.class.php +++ b/webapp/controller/ToolsController.class.php @@ -522,7 +522,7 @@ class ToolsController extends BaseController { BattleBoxService::set($phase, $day); } - public function genAndroid() + public function includeAndroid() { mt\Robot::traverse(function ($meta) { $row = SqlHelper::ormSelectOne @@ -539,4 +539,21 @@ class ToolsController extends BaseController { }); } + public function excludeAndroid() + { + mt\Robot::traverse(function ($meta) { + $row = SqlHelper::ormSelectOne + ($this->_getMysql(''), + 't_user', + array( + 'name' => $meta['name'] + ) + ); + if (!$row) { + echo json_encode($meta); + } + return true; + }); + } + }