代码功能更新

This commit is contained in:
root
2025-05-18 07:42:27 +00:00
parent 7fc1d422a1
commit 4a90c41da2
2083 changed files with 695218 additions and 3 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
/**
* Api请求日志模型
*/
namespace app\model\admin\balance;
use laytp\BaseModel;
class Log extends BaseModel
{
//模型名
protected $name = 'balance';
//附加属性
protected $append = [];
//时间戳字段转换
protected $type = [
'time' => 'timestamp:Y-m-d H:i:s',
];
//表名
//关联模型
//新增属性的方法
public function getCreateTimeIntAttr($value, $data)
{
return isset($data['create_time']) ? strtotime($data['create_time']) : 0;
}
}