fixed migrations, changed settings to global settings, changed image list to have a "delete all" button instead of "create", fixed printing, added imagick for printing.
This commit is contained in:
@@ -124,6 +124,21 @@ class ComfyUi implements ApiPluginInterface
|
||||
$modelParams = $style->aiModel->parameters ?? [];
|
||||
$styleParams = $style->parameters ?? [];
|
||||
|
||||
// Ensure both parameters are arrays, decode JSON if needed
|
||||
if (is_string($modelParams)) {
|
||||
$modelParams = json_decode($modelParams, true);
|
||||
if (json_last_error() !== JSON_ERROR_NONE) {
|
||||
$modelParams = [];
|
||||
}
|
||||
}
|
||||
|
||||
if (is_string($styleParams)) {
|
||||
$styleParams = json_decode($styleParams, true);
|
||||
if (json_last_error() !== JSON_ERROR_NONE) {
|
||||
$styleParams = [];
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($modelParams) && empty($styleParams)) {
|
||||
throw new \Exception('ComfyUI workflow (parameters) is missing.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user