SystemAnnex.php 843 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace app\common\model;
  3. class SystemAnnex extends BaseModel
  4. {
  5. /**
  6. * @var string
  7. */
  8. protected $name = 'system_annex';
  9. /**
  10. * @var array
  11. */
  12. protected $auto = [];
  13. /**
  14. * @var array
  15. */
  16. protected $insert = ['created_at','updated_at'];
  17. /**
  18. * @var array
  19. */
  20. protected $update = ['updated_at'];
  21. /**
  22. * 自动附件地址 -- 弃用
  23. * 等待优化
  24. *
  25. * @author 许祖兴 < zuxing.xu@lettered.cn>
  26. * @date 2020/7/1 1:12
  27. *
  28. * @param $value
  29. * @param $data
  30. * @return string
  31. */
  32. // public function getPathAttr($value, $data)
  33. // {
  34. // return ($data['driver'] == 'qiniu' ? 'http://q6tf36mtr.bkt.clouddn.com/'
  35. // : 'http://img.gxrrj.cn') . $value ;
  36. // }
  37. }