作者 lyh

gx

@@ -12,6 +12,8 @@ class DeployBuild extends Base @@ -12,6 +12,8 @@ class DeployBuild extends Base
12 //设置关联表名 12 //设置关联表名
13 protected $table = 'gl_project_deploy_build'; 13 protected $table = 'gl_project_deploy_build';
14 14
  15 +
  16 +
15 public function setPlanAttribute($value){ 17 public function setPlanAttribute($value){
16 $this->attributes['plan'] = Arr::arrToSet($value, 'trim'); 18 $this->attributes['plan'] = Arr::arrToSet($value, 'trim');
17 } 19 }
@@ -20,12 +22,10 @@ class DeployBuild extends Base @@ -20,12 +22,10 @@ class DeployBuild extends Base
20 return Arr::setToArr($value, 'trim'); 22 return Arr::setToArr($value, 'trim');
21 } 23 }
22 24
23 -// public function getTestDomainAttribute(): string  
24 -// {  
25 -// $hashids = new Hashids('test_domain', 5, 'abcdefghjkmnpqrstuvwxyz1234567890');  
26 -// $code = $hashids->encode($this->project_id);  
27 -// return 'https://v6-' . $code . '.globalso.site';  
28 -// } 25 + public function getTestDomainAttribute($value): string
  26 + {
  27 + return $value;
  28 + }
29 29
30 public static function clearCache($row){ 30 public static function clearCache($row){
31 $cache_key = 'project_' . $row->original['test_domain']; 31 $cache_key = 'project_' . $row->original['test_domain'];