From c69d1c7600a5b9df7b682511f8029a1cd7ef8bac Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 16 Jun 2022 15:55:18 +0800 Subject: [PATCH] 1 --- .../controller/TempToolsController.class.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/webapp/controller/TempToolsController.class.php b/webapp/controller/TempToolsController.class.php index 9a64f14b..20a43e48 100644 --- a/webapp/controller/TempToolsController.class.php +++ b/webapp/controller/TempToolsController.class.php @@ -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"; + } + } + } + } + }