1
This commit is contained in:
parent
386a499c64
commit
d04c4c4bf8
@ -554,7 +554,18 @@ class ToolsController extends BaseController {
|
||||
)
|
||||
);
|
||||
foreach ($rows as $row) {
|
||||
echo json_encode($row);
|
||||
$userDb = SqlHelper::ormSelectOne
|
||||
($this->_getMysql(''),
|
||||
't_user',
|
||||
array(
|
||||
'name' => $row['name']
|
||||
)
|
||||
);
|
||||
if ($userDb) {
|
||||
echo "UPDATE t_android SET used=1 WHERE name='" . $row['name'] . "';\n";
|
||||
} else {
|
||||
echo "UPDATE t_android SET used=0 WHERE name='" . $row['name'] . "';\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user