AuthGroup.php 574 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\admin\model;
  3. use think\Model;
  4. class AuthGroup extends Model
  5. {
  6. // 开启自动写入时间戳字段
  7. protected $autoWriteTimestamp = 'int';
  8. // 定义时间戳字段名
  9. protected $createTime = 'createtime';
  10. protected $updateTime = 'updatetime';
  11. public static $servicePlatform = [
  12. 'h5' => 'H5',
  13. 'dy' => '抖音',
  14. 'ks' => '快手'
  15. ];
  16. public static $serviceType = [1=>'电话', 2=>'链接', 3=>'二维码'];
  17. public function getNameAttr($value, $data)
  18. {
  19. return __($value);
  20. }
  21. }