mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-24 04:01:31 +08:00
修正chapter attrs字段序列化问题
This commit is contained in:
parent
252d3e70c5
commit
4e69f1b43e
@ -214,9 +214,10 @@ class Chapter extends Model
|
||||
$this->attrs = $this->_read_attrs;
|
||||
}
|
||||
}
|
||||
if (is_array($this->attrs)) {
|
||||
$this->attrs = kg_json_encode($this->attrs);
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($this->attrs)) {
|
||||
$this->attrs = kg_json_encode($this->attrs);
|
||||
}
|
||||
|
||||
$this->create_time = time();
|
||||
|
Loading…
x
Reference in New Issue
Block a user