1
This commit is contained in:
parent
1d127c9115
commit
df11f297d5
@ -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";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user