This commit is contained in:
aozhiwei 2022-06-22 16:08:22 +08:00
commit 7de3f3c545

View File

@ -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) . ','