UserFollowModel.php 868 B

123456789101112131415161718192021222324252627
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: 老猫 <thinkcmf@126.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\love\model;
  12. use think\Model;
  13. class UserFollowModel extends Model
  14. {
  15. public function getCreateTimeAttr($value)
  16. {
  17. if (empty($value)) {
  18. return '';
  19. } else {
  20. return date('Y-m-d H:i:s',$value);
  21. }
  22. }
  23. }