0){ throw new \Exception('该保修卡已提交过'); } OrderEffectiveLog::where('id', $params['id'])->update([ 'effective_images' => json_encode($params['effective_images']), 'remark' => $params['remark'] ?? '', 'effective_status' => 1, 'effective_time' => time() ]); //Db::commit(); return true; } catch (\Exception $e) { //Db::rollback(); self::setError($e->getMessage()); return false; } } }