1
This commit is contained in:
parent
684e4b20b2
commit
66eaf31290
@ -522,40 +522,6 @@ class ToolsController extends BaseController {
|
|||||||
BattleBoxService::set($phase, $day);
|
BattleBoxService::set($phase, $day);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function includeAndroid()
|
|
||||||
{
|
|
||||||
mt\Robot::traverse(function ($meta) {
|
|
||||||
$row = SqlHelper::ormSelectOne
|
|
||||||
($this->_getMysql(''),
|
|
||||||
't_user',
|
|
||||||
array(
|
|
||||||
'name' => $meta['name']
|
|
||||||
)
|
|
||||||
);
|
|
||||||
if ($row) {
|
|
||||||
echo json_encode($meta);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public function genAndroid()
|
public function genAndroid()
|
||||||
{
|
{
|
||||||
mt\Robot::traverse(function ($meta) {
|
mt\Robot::traverse(function ($meta) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user