Argument 1 passed to think\db\Query::update() must be of the type array, string given, called in
元素模板为您解答:
按字面意思就是 必须写入数组字段才行,所以基本就是写法错误,或者传入值写错
update([’name‘=>$name,'state' => $state])
按照上面代码即可
update([’name‘=>$name,'state' => $state])
本文地址:https://www.ys720.com/jiaocheng/3696.html
版权声明:本文采用[BY-NC-SA]协议进行授权,如无特别说明,转载请注明本文地址!