|
@@ -210,6 +210,10 @@ class Page extends Auth
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if ($field) {
|
|
if ($field) {
|
|
|
|
+ if (is_string($field) && (strstr($field, '{') || strstr($field, '%7B'))) {
|
|
|
|
+ $field = htmlspecialchars_decode($field);
|
|
|
|
+ $field = Dever::json_decode($field);
|
|
|
|
+ }
|
|
if (is_array($field)) {
|
|
if (is_array($field)) {
|
|
if (isset($field['param'])) {
|
|
if (isset($field['param'])) {
|
|
if (isset($field['param']['set'])) {
|
|
if (isset($field['param']['set'])) {
|
|
@@ -272,6 +276,9 @@ class Page extends Auth
|
|
$value['remote'] = Dever::url($value['remote']);
|
|
$value['remote'] = Dever::url($value['remote']);
|
|
}
|
|
}
|
|
if ($type == 'show') {
|
|
if ($type == 'show') {
|
|
|
|
+ if (!isset($value['tip'])) {
|
|
|
|
+ $value['tip'] = true;
|
|
|
|
+ }
|
|
$in = array('switch', 'select', 'input');
|
|
$in = array('switch', 'select', 'input');
|
|
if (in_array($value['type'], $in)) {
|
|
if (in_array($value['type'], $in)) {
|
|
$value['func'] = $this->getFunc('list_edit_' . $value['key'], '列表更新-' . $value['name'], 104);
|
|
$value['func'] = $this->getFunc('list_edit_' . $value['key'], '列表更新-' . $value['name'], 104);
|
|
@@ -329,6 +336,7 @@ class Page extends Auth
|
|
if (isset($value['upload']) && Dever::project('upload')) {
|
|
if (isset($value['upload']) && Dever::project('upload')) {
|
|
$value['url'] = Dever::url('upload/save.act', array('id' => $value['upload']));
|
|
$value['url'] = Dever::url('upload/save.act', array('id' => $value['upload']));
|
|
$value['config'] = Dever::load('save', 'upload')->get($value['upload']);
|
|
$value['config'] = Dever::load('save', 'upload')->get($value['upload']);
|
|
|
|
+ $value['set'] = Dever::url('image/manage.set', array('id' => $value['upload'], 'wh' => $value['wh'] ?? '500*500'));
|
|
if (isset($value['multiple']) && $value['multiple']) {
|
|
if (isset($value['multiple']) && $value['multiple']) {
|
|
$value['limit'] = 10;
|
|
$value['limit'] = 10;
|
|
} else {
|
|
} else {
|
|
@@ -390,6 +398,9 @@ class Page extends Auth
|
|
if ($value['type'] == 'text') {
|
|
if ($value['type'] == 'text') {
|
|
$value['type'] = 'select';
|
|
$value['type'] = 'select';
|
|
}
|
|
}
|
|
|
|
+ if (!is_array($value['value']) && $value['value']) {
|
|
|
|
+ $value['value'] = (float) $value['value'];
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|