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