如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
//更新,根据主键更新 $list = [ ['id'=>2,'config_name'=>'record_number','config_val'=>$data['record_number']], ['id'=>3,'config_name'=>'zz_email','config_val'=>$data['zz_email']] ]; $res = $this->saveAll($list); if($res){ return ['valid'=>1, 'msg'=>'修改成功']; }else{ return ['valid'=>0, 'msg'=>'修改失败']; }