| @@ 357-362 (lines=6) @@ | ||
| 354 | 'shopId' => null, |
|
| 355 | 'groupName' => 'import' |
|
| 356 | ]); |
|
| 357 | if (is_null($model)) { |
|
| 358 | $model = new ConfigModel(); |
|
| 359 | $model->setName($key); |
|
| 360 | $model->setGroupName('import'); |
|
| 361 | $model->setShopId(null); |
|
| 362 | } |
|
| 363 | ||
| 364 | if (is_array($configValue)) { |
|
| 365 | $model->setValue(json_encode($configValue)); |
|
| @@ 417-422 (lines=6) @@ | ||
| 414 | 'shopId' => null, |
|
| 415 | 'groupName' => 'export' |
|
| 416 | ]); |
|
| 417 | if (is_null($model)) { |
|
| 418 | $model = new ConfigModel(); |
|
| 419 | $model->setName($key); |
|
| 420 | $model->setGroupName('export'); |
|
| 421 | $model->setShopId(null); |
|
| 422 | } |
|
| 423 | ||
| 424 | if (is_array($configValue)) { |
|
| 425 | $model->setValue(json_encode($configValue)); |
|