This commit is contained in:
aozhiwei 2024-11-06 17:37:25 +08:00
parent 386a499c64
commit d04c4c4bf8

View File

@ -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";
}
}
}