[渠道管理]

This commit is contained in:
2026-04-15 10:19:41 +08:00
parent 7b002c9410
commit 8cc28096c4
11 changed files with 595 additions and 343 deletions

View File

@@ -5,12 +5,12 @@ namespace app\common\model;
use support\think\Model;
/**
* GameChannel
* Channel
*/
class GameChannel extends Model
class Channel extends Model
{
// 表名
protected $name = 'game_channel';
protected $name = 'channel';
// 自动写入时间戳字段
protected $autoWriteTimestamp = true;
@@ -21,7 +21,6 @@ class GameChannel extends Model
'update_time' => 'integer',
];
public function getprofitAmountAttr($value): ?float
{
return is_null($value) ? null : (float)$value;
@@ -36,4 +35,4 @@ class GameChannel extends Model
{
return $this->belongsTo(\app\admin\model\Admin::class, 'admin_id', 'id');
}
}
}

View File

@@ -1,31 +0,0 @@
<?php
namespace app\common\validate;
use think\Validate;
class GameChannel extends Validate
{
protected $failException = true;
/**
* 验证规则
*/
protected $rule = [
];
/**
* 提示消息
*/
protected $message = [
];
/**
* 验证场景
*/
protected $scene = [
'add' => [],
'edit' => [],
];
}