diff --git a/app/controller/PluginController.php b/app/controller/PluginController.php index 11b63be..f5e85ae 100644 --- a/app/controller/PluginController.php +++ b/app/controller/PluginController.php @@ -1,85 +1,16 @@ request->get(); + $data = Platform::order('id', 'desc')->paginate(['list_rows' => $query['limit'], 'page' => $query['page']]); + if ($data) { + return json(['code' => 0, 'msg' => 'OK', 'count' => $data->total(), 'data' => $data->items()]); + } else { + return json(['code' => 1, 'msg' => '无数据记录', 'count' => 0, 'data' => []]); + } } } diff --git a/config/extendconfig/menu.php b/config/extendconfig/menu.php index 7f387ca..7e02243 100644 --- a/config/extendconfig/menu.php +++ b/config/extendconfig/menu.php @@ -52,21 +52,21 @@ return [ 'openType' => '_iframe', 'href' => '/System/index', ], - [ - 'id' => 'pay', - 'title' => '支付管理', - 'icon' => 'layui-icon layui-icon-console', - 'type' => 0, - 'href' => '', - 'children' => [ - [ - 'id' => 'pay_qrcode_list', - 'title' => '收款账户', - 'icon' => 'layui-icon layui-icon-console', - 'type' => 1, - 'openType' => '_iframe', - 'href' => '/PayQrcode/index', - ], - ], - ], + // [ + // 'id' => 'pay', + // 'title' => '支付管理', + // 'icon' => 'layui-icon layui-icon-console', + // 'type' => 0, + // 'href' => '', + // 'children' => [ + // [ + // 'id' => 'pay_qrcode_list', + // 'title' => '收款账户', + // 'icon' => 'layui-icon layui-icon-console', + // 'type' => 1, + // 'openType' => '_iframe', + // 'href' => '/PayQrcode/index', + // ], + // ], + // ], ]; diff --git a/view/plugin/index.html b/view/plugin/index.html new file mode 100644 index 0000000..3842681 --- /dev/null +++ b/view/plugin/index.html @@ -0,0 +1,131 @@ + + + +
+ +