|
@@ -47,7 +47,13 @@ class Api
|
|
|
|
|
|
if ($model) {
|
|
|
$config = array();
|
|
|
- $config['background'] = Dever::local($template['background']);
|
|
|
+ if (isset($set['background']) && $set['background']) {
|
|
|
+ $config['background'] = Dever::local($set['background']);
|
|
|
+ unset($set['background']);
|
|
|
+ } else {
|
|
|
+ $config['background'] = Dever::local($template['background']);
|
|
|
+ }
|
|
|
+
|
|
|
$config['param'] = array();
|
|
|
foreach ($model as $k => $v) {
|
|
|
$param = $this->getConfig($v, $set);
|