This commit is contained in:
aozhiwei 2022-06-16 15:55:18 +08:00
parent 2670783e37
commit c69d1c7600

View File

@ -180,6 +180,8 @@ class TempToolsController extends BaseController {
$this->exportData1();
} else if($type == 2) {
$this->exportData2();
} else if($type == 3) {
$this->exportData3();
}
}
@ -226,4 +228,28 @@ class TempToolsController extends BaseController {
}
}
public function exportData3()
{
$type = getReqVal('type', '');
$cond = getReqVal('cond', 0);
$accounts = array();
$conn = myself()->_getMysql('');
{
$rows = $conn->execQuery(
'SELECT * FROM t_dyndata WHERE x=:x AND y=:y',
array(
':x' => TN_ACTIVE,
':y' => 0,
)
);
echo 'account_id' . ",>=10,>=30,>\n";
foreach ($rows as $row) {
$channel = phpcommon\extractChannel($row['account_id']);
if ($channel == 6516) {
echo $row['account_id'] . "\n";
}
}
}
}
}