作者 lyh

gx

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