代码优化

This commit is contained in:
wong
2025-04-23 12:01:49 +08:00
parent 4b5b3a7156
commit 04ec23b09b
7 changed files with 216 additions and 21 deletions

View File

@@ -0,0 +1,14 @@
<?php
namespace app\store\model;
use think\Model;
class TrafficUsageLog extends Model
{
// 自动转换时间为时间戳
protected $type = [
'createTime' => 'timestamp',
'updateTime' => 'timestamp',
];
}