代码优化
This commit is contained in:
14
Server/application/store/model/TrafficUsageLog.php
Normal file
14
Server/application/store/model/TrafficUsageLog.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace app\store\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
class TrafficUsageLog extends Model
|
||||
{
|
||||
|
||||
// 自动转换时间为时间戳
|
||||
protected $type = [
|
||||
'createTime' => 'timestamp',
|
||||
'updateTime' => 'timestamp',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user