$list = [];
$list['goodsimg'] = $model['goodsimage'];
$list['id'] = $model['goods_id'];
正确模式:
$a = Loader::model('common/ShopGoods');
$b = $a->save($list,['id'=>$list['id']]);
错误模式:
$a = Loader::model('common/ShopGoods')->where(['id',$list['id'])->save($list);