先看这篇帖子:
http://www.thinkphp.cn/bug/3707.html
问题代码:https://github.com/top-think/thinkphp/commit/352a4e6284211d5390abe653e36de77a33ab4abb
BUG:如果$this->updateFields定义为字符串'name,……',那上面的代码会出问题,array_push出错,就没用了,应该还在上面加一句:
if (is_string($fields)) {
$fields = explode(',', $fields);
}大家说对不对?