glhcp/server/app/common/model/distribution/Distribution.php

23 lines
496 B
PHP
Raw Normal View History

2023-08-10 06:59:52 +00:00
<?php
namespace app\common\model\distribution;
use app\common\basics\Models;
use think\model\concern\SoftDelete;
class Distribution extends Models
{
use SoftDelete;
protected $deleteTime = 'delete_time';
/**
* @notes 成为分销会员时间
* @param $value
* @return false|string
* @author Tab
* @date 2021/9/2 18:59
*/
public function getDistributionTimeAttr($value)
{
return empty($value) ? '' : date('Y-m-d H:i:s', $value);
}
}