Open Guogb opened 6 years ago
已解决,修改器格式问题
From this:
public function setOptionsAttribute($options) { if (is_array($options)) { $options = join(',', $options); }
$this->options = $options;
}
To this:
public function setOptionsAttribute($options)
{
if (is_array($options)) {
$options = join(',', $options);
}
$this->attributes['options'] = $options;
}
本地测试也一样,save()返回true 但是数据库没有被更新