From 0207adc4521d0fd84cfd0d8f816c07484a6c2f8c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 13 Jun 2022 13:27:31 +0800 Subject: [PATCH] 1 --- .../controller/TempToolsController.class.php | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/webapp/controller/TempToolsController.class.php b/webapp/controller/TempToolsController.class.php index ada4af59..0a286b9d 100644 --- a/webapp/controller/TempToolsController.class.php +++ b/webapp/controller/TempToolsController.class.php @@ -206,11 +206,21 @@ class TempToolsController extends BaseController { 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"; + $type = getReqVal('type', ''); + $accounts = array(); + $conn = myself()->_getMysql(''); + { + $rows = $conn->execQuery( + 'SELECT * FROM t_user', + array( + ) + ); + echo 'account_id' . "\n"; + foreach ($rows as $row) { + $channel = phpcommon\extractChannel($row['account_id']); + if ($channel == 6516) { + echo $row['account_id'] . "\n"; + } } } }