作者 lyh

gx

@@ -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){