MemberModel.php 901 字节
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 老猫 <thinkcmf@126.com>
// +----------------------------------------------------------------------
namespace api\portal\model;

use think\Model;

class MemberModel extends Model
{
    protected $autoWriteTimestamp = true;
//    protected $auto = [];
    protected $insert = ['create_time'];
    protected $update = [''];

    protected function setCreateTimeAttr()
    {
        return time();
    }

}