更新
This commit is contained in:
parent
d34992d827
commit
c8cf8c0412
@ -40,4 +40,12 @@ class TaskTemplate extends BaseModel
|
||||
{
|
||||
return $this->hasOne(DictData::class, 'id', 'type')->bind(['type_name'=>'name']);
|
||||
}
|
||||
|
||||
public function getExtendAttr($value){
|
||||
if($value==null){
|
||||
return [];
|
||||
}else{
|
||||
return json_decode($value,true);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user