This commit is contained in:
aozhiwei 2022-06-10 12:59:51 +08:00
parent 1d127c9115
commit df11f297d5

View File

@ -173,4 +173,46 @@ class TempToolsController extends BaseController {
}
}
public function exportData()
{
$type = getReqVal('type', '');
if ($type == 1) {
$this->exportData1();
} else if($type == 2) {
$this->exportData2();
}
}
public function exportData1()
{
$type = getReqVal('type', '');
$accounts = array();
$conn = myself()->_getMysql('');
{
$rows = $conn->execQuery(
'SELECT * FROM t_battle',
array(
)
);
echo 'account_id' . "\n";
foreach ($rows as $row) {
$channel = phpcommon\extractChannel($row['account_id']);
if ($channel == 6516) {
echo $row['account_id'] . "\n";
}
}
}
}
public function exportData2()
{
echo 'account_id' . "\n";
foreach ($rows as $row) {
$channel = phpcommon\extractChannel($row['account_id']);
if ($channel == 6516) {
echo $row['account_id'] . "\n";
}
}
}
}