作者 赵彬吉

update

... ... @@ -56,19 +56,12 @@ class ReInquiryTask extends Base
return $self;
}
public function setTarget($id, $target){
$self = self::where(['id' => $id])->first();
if (empty($self)) {
}
}
/**
* @param $value
* @return mixed
*/
public function getTargetAttribute($value)
{
return json_decode($value, true);
return $value ? json_decode($value, true) : [];
}
}
... ...