diff --git a/webapp/controller/TempToolsController.class.php b/webapp/controller/TempToolsController.class.php index 21b8d9b1..1886d94b 100644 --- a/webapp/controller/TempToolsController.class.php +++ b/webapp/controller/TempToolsController.class.php @@ -241,12 +241,20 @@ class TempToolsController extends BaseController { ':y' => 0, ) ); - echo 'account_id' . ",active>=10,active>=30,active>=50,active_value\n"; + echo 'account_id' . ",name,active>=10,active>=30,active>=50,active_value\n"; foreach ($rows as $row) { $channel = phpcommon\extractChannel($row['account_id']); if ($channel == 6516) { + $userDb = SqlHelper::ormSelectone( + $conn, + 't_user', + array( + 'account_id' => $row['account_id'] + ) + ); echo $row['account_id'] . ',' + . ($userDb ? $userDb['name'] : '') . ',' . ($row['val'] >= 10 && $row['val'] < 30 ? 1 :0) . ',' . ($row['val'] >= 30 && $row['val'] < 50 ? 1 :0) . ',' . ($row['val'] >= 50 ? 1 :0) . ','