Skip to content

Commit 1e076d3

Browse files
committed
更新readme
1 parent 320ca64 commit 1e076d3

3 files changed

Lines changed: 30 additions & 15 deletions

File tree

README.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111
#### 欢迎加入HPlus交流群,群聊号码:512465490
1212
点击链接加入群聊【hyperf-admin交流群】:<a href="https://qm.qq.com/cgi-bin/qm/qr?k=pCkT8bLR-scfzGhiLYAu2AuEu5pzOfdD&authKey=0L9w5QrmZJQpDdaH9R5WpPK5mUPyh1RiM3nqcRggpMpM8heAgBBXWdzuk9zkyRko&noverify=0">群聊号码:512465490</a>
1313
<p align="center">
14-
<a href="https://github.com/lphkxd/hyperf-admin/releases"><img src="https://poser.pugx.org/mzh/hyperf-admin-plugin/v/stable" alt="Stable Version"></a>
15-
<a href="https://travis-ci.org/mzh/hyperf-admin-plugin"><img src="https://travis-ci.org/mzh/hyperf-admin-plugin.svg?branch=master" alt="Build Status"></a>
16-
<a href="https://packagist.org/packages/mzh/hyperf-admin-plugin"><img src="https://poser.pugx.org/mzh/hyperf-admin-plugin/downloads" alt="Total Downloads"></a>
17-
<a href="https://packagist.org/packages/mzh/hyperf-admin-plugin"><img src="https://poser.pugx.org/mzh/hyperf-admin-plugin/d/monthly" alt="Monthly Downloads"></a>
14+
<a href="https://github.com/hyperf-plus/admin/releases"><img src="https://poser.pugx.org/hyperf-plus/admin/v/stable" alt="Stable Version"></a>
15+
<a href="https://packagist.org/packages/hyperf-plus/admin"><img src="https://poser.pugx.org/hyperf-plus/admin/downloads" alt="Total Downloads"></a>
16+
<a href="https://packagist.org/packages/hyperf-plus/admin"><img src="https://poser.pugx.org/hyperf-plus/admin/d/monthly" alt="Monthly Downloads"></a>
1817
<a href="https://www.php.net"><img src="https://img.shields.io/badge/php-%3E=7.3-brightgreen.svg?maxAge=2592000" alt="Php Version"></a>
1918
<a href="https://github.com/swoole/swoole-src"><img src="https://img.shields.io/badge/swoole-%3E=4.5-brightgreen.svg?maxAge=2592000" alt="Swoole Version"></a>
20-
<a href="https://github.com/lphkxd/hyperf-admin-plugin/blob/master/LICENSE"><img src="https://img.shields.io/github/license/lphkxd/hyperf-admin-plugin.svg?maxAge=2592000" alt="HyperfAdmin License"></a>
19+
<a href="https://github.com/hyperf-plus/admin/blob/master/LICENSE"><img src="https://img.shields.io/github/license/hyperf-plus/admin.svg?maxAge=2592000" alt="HyperfAdmin License"></a>
2120
</p>
2221
#### laravel版本地址 <a href="https://github.com/SmallRuralDog/laravel-vue-admin">laravel-vue-admin</a>
2322

@@ -56,7 +55,7 @@
5655
],
5756
];
5857
```
59-
- 6、添加权限控制插件(如果不启用默认权限控制,可以忽略此步骤)
58+
- 6、(可选)添加权限控制插件(如果不启用默认权限控制,可以忽略此步骤)
6059
```bash
6160
composer require hyperf-plus/permission
6261
```
@@ -69,7 +68,7 @@ return [
6968
#...省略
7069
'route' => [
7170
#...省略
72-
'middleware' => [自己的权限验证中间件],
71+
'middleware' => [AuthMiddleware::class,自己的权限验证中间件],
7372
],
7473
#...省略
7574
]
@@ -82,7 +81,20 @@ return [
8281
2、security 为true必须验证权限 false公共开放资源
8382
路由注解只在启动第一次时扫描并缓存,后续请求不会再做解析,提高性能
8483

85-
- 7、启动服务
84+
- 7、(可选)日志记录,添加日志管理中间件,日志记录功能数据量较大,默认不开启(如需开启在admin配置文件的route节点下middleware添加LogsMiddleware中间件即可 )
85+
或者在需要加日志的接口,注解上LogsMiddleware中间件即可记录
86+
```php
87+
<?php
88+
return [
89+
#...省略
90+
'route' => [
91+
#...省略
92+
'middleware' => [AuthMiddleware::class, LogsMiddleware::class, 其他中间件],
93+
],
94+
#...省略
95+
]
96+
```
97+
- 8、启动服务
8698
```bash
8799
php bin/hyperf.php start
88100
```
@@ -92,4 +104,9 @@ return [
92104

93105
#### 以插件形式开箱即用
94106
#### 可以做到无需VUE前端可实现快速开发各种表单
95-
#### 喜欢的帮忙点个star
107+
108+
### 赞助
109+
#### 1、开源不易,如果此项目能够帮到您,希望点个star
110+
#### 2、欢迎您的捐赠
111+
<img src="https://gitee.com/hyperf-plus/image/raw/master/%E6%9C%AA%E6%A0%87%E9%A2%98-1.jpg" width="500" alt="HyperfAdmin License">
112+
<img src="//ia.51.la/go1?id=21039519&pvFlag=1" style="border:none" />

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"hyperf/redis": "^2.0.0",
2222
"hyperf-plus/route": "~2.1.0",
2323
"96qbhy/hyperf-auth": "^2.3",
24-
"hyperf-plus/ui": "~1.0.0",
24+
"hyperf-plus/ui": "~1.0.0|dev-master",
2525
"hyperf/paginator": "~2.1.0"
2626
},
2727
"autoload": {

publish/admin.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use HPlus\Admin\Model\Admin\Permission;
1717
use HPlus\Admin\Model\Admin\Role;
1818
use HPlus\Admin\Middleware\AuthMiddleware;
19+
use HPlus\Admin\Middleware\LogsMiddleware;
1920

2021
return [
2122
//后台名称 null不显示
@@ -124,7 +125,7 @@
124125
],
125126
//操作日志
126127
'operation_log' => [
127-
'enable' => true,
128+
'enable' => true, #开启或关闭日志记录功能
128129
/*
129130
* Only logging allowed methods in the list
130131
*/
@@ -136,10 +137,7 @@
136137
* or specific method to path like: get:admin/auth/logs.
137138
*/
138139
'except' => [
139-
'admin/auth/logs*',
140-
'admin-api/auth/logs*',
141-
'admin',
142-
'admin-api',
140+
'/admin/logs*',
143141
],
144142
],
145143
'check_route_permission' => true,

0 commit comments

Comments
 (0)