[积分商城]PlayX每日推送数据

This commit is contained in:
2026-03-20 18:10:34 +08:00
parent 0d62c915bd
commit 05312b3417
5 changed files with 174 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
<?php
namespace app\admin\controller\mall;
use Throwable;
use app\common\controller\Backend;
use support\Response;
use Webman\Http\Request;
/**
* PlayX 每日推送数据(后台列表)
*/
class PlayxDailyPush extends Backend
{
/**
* @var object|null
* @phpstan-var \app\common\model\MallPlayxDailyPush|null
*/
protected ?object $model = null;
protected array|string $preExcludeFields = ['id', 'create_time', 'update_time'];
protected string|array $quickSearchField = ['user_id', 'username', 'date'];
protected string|array $indexField = [
'id',
'user_id',
'date',
'username',
'yesterday_win_loss_net',
'yesterday_total_deposit',
'lifetime_total_deposit',
'lifetime_total_withdraw',
'create_time',
];
public function initialize(): void
{
parent::initialize();
$this->model = new \app\common\model\MallPlayxDailyPush();
}
/**
* 查看
* @throws Throwable
*/
public function index(Request $request): Response
{
$response = $this->initializeBackend($request);
if ($response !== null) {
return $response;
}
if ($request->get('select') || $request->post('select')) {
return $this->select($request);
}
return $this->_index();
}
}

View File

@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace app\common\model;
use support\think\Model;
/**
* PlayX 每日推送数据
*/
class MallPlayxDailyPush extends Model
{
protected string $name = 'mall_playx_daily_push';
protected array $type = [
'yesterday_win_loss_net' => 'float',
'yesterday_total_deposit' => 'float',
'lifetime_total_deposit' => 'float',
'lifetime_total_withdraw' => 'float',
'create_time' => 'integer',
];
}