12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace App\Models;
- class SysVersion extends SoftBaseModel
- {
- /**
- * 苹果
- */
- const TYPE_1 = 1;
- /**
- * 安卓
- */
- const TYPE_2 = 2;
- static public $typeMap = [
- self::TYPE_1 => '苹果',
- self::TYPE_2 => '安卓',
- ];
- /**
- * 否
- */
- const IS_MUST_0 = 0;
- /**
- * 是
- */
- const IS_MUST_1 = 1;
- static public $isMustMap = [
- self::IS_MUST_0 => '否',
- self::IS_MUST_1 => '是',
- ];
-
- public function getWebUrlAttribute()
- {
- return isset($this->attributes['web_url']) ? config('console.pic_path').$this->attributes['web_url'] : '';
- }
- }
|