@@ -732,8 +732,12 @@ class Page extends Auth
if ($i) {
$icon = $i;
}
- if ($key == 'button' && $data && is_array($p)) {
- if (!$p) {
+ if ($key == 'button' && $data) {
+ if ($p) {
+ if (is_string($p)) {
+ $p = explode(',', $p);
+ }
+ } else {
$p = [];
$p += $data;
@@ -9,7 +9,7 @@ class Util
# 获取后台传入的数据
public function request($col, $other = '')
{
- $info = Dever::input(['field', 'set'])[$col] ?? 0;
+ $info = Dever::input(['set', 'field'])[$col] ?? 0;
if ($other && !$info) {
$info = Dever::input($other);