1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-24 20:06:09 +08:00

修正chapter attrs字段序列化问题

This commit is contained in:
koogua 2021-03-23 10:43:15 +08:00
parent 252d3e70c5
commit 4e69f1b43e

View File

@ -214,9 +214,10 @@ class Chapter extends Model
$this->attrs = $this->_read_attrs; $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(); $this->create_time = time();