正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -22,9 +22,11 @@ class DeployBuild extends Base | @@ -22,9 +22,11 @@ class DeployBuild extends Base | ||
| 22 | return Arr::setToArr($value, 'trim'); | 22 | return Arr::setToArr($value, 'trim'); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | - public function getTestDomainAttribute($value): string | 25 | + public function getTestDomainAttribute(): string |
| 26 | { | 26 | { |
| 27 | - return $value; | 27 | + $hashids = new Hashids('test_domain', 5, 'abcdefghjkmnpqrstuvwxyz1234567890'); |
| 28 | + $code = $hashids->encode($this->project_id); | ||
| 29 | + return 'https://v6-' . $code . '.globalso.site'; | ||
| 28 | } | 30 | } |
| 29 | 31 | ||
| 30 | public static function clearCache($row){ | 32 | public static function clearCache($row){ |
-
请 注册 或 登录 后发表评论