Skip to content

Commit 48fdef2

Browse files
committed
优化更新
1 parent 6224707 commit 48fdef2

25 files changed

+60
-49
lines changed

src/Auth/Admin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Admin
2929

3030
/**
3131
* 用户登录
32+
*
3233
* @param string $name 账户名
3334
* @param string $password (md5值) 密码
3435
* @return bool|mixed
@@ -90,6 +91,7 @@ public function getInfo($id)
9091

9192
/**
9293
* 检测密码
94+
*
9395
* @param type $identifier 用户名或者用户ID
9496
* @param type $password 密码
9597
* @return boolean
@@ -116,6 +118,7 @@ public function checkPassword($identifier, $password)
116118

117119
/**
118120
* 检验用户是否已经登陆
121+
*
119122
* @return boolean
120123
*/
121124
public function check()
@@ -182,6 +185,7 @@ public function isSuperAdmin($id = null)
182185

183186
/**
184187
* 注销登录状态
188+
*
185189
* @return boolean
186190
*/
187191
public function logout()
@@ -195,6 +199,7 @@ public function logout()
195199

196200
/**
197201
* 管理员密码加密
202+
*
198203
* @param $password
199204
* @param $encrypt //传入加密串,在修改密码时做认证
200205
* @return array/password

src/Auth/Check.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected function checkMatchUrl($name, $auth)
151151
}
152152

153153
/**
154-
* 格式化name
154+
* 格式化 name
155155
*
156156
* @param string $name 要检测的名称
157157
* @return string

src/Auth/Parser.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Parser
2929

3030
/**
3131
* 设置
32+
*
3233
* @param string $url 链接地址
3334
* @return object
3435
*/
@@ -40,6 +41,7 @@ public function withUrl($url)
4041

4142
/**
4243
* 获取链接
44+
*
4345
* @return string
4446
*/
4547
public function getUrl()
@@ -49,6 +51,7 @@ public function getUrl()
4951

5052
/**
5153
* 获取地址
54+
*
5255
* @return string
5356
*/
5457
public function getPath()
@@ -58,6 +61,7 @@ public function getPath()
5861

5962
/**
6063
* 获取参数
64+
*
6165
* @return array
6266
*/
6367
public function getParam()
@@ -67,6 +71,7 @@ public function getParam()
6771

6872
/**
6973
* 解析
74+
*
7075
* @return Parser
7176
*/
7277
public function parse()
@@ -87,6 +92,7 @@ public function parse()
8792

8893
/**
8994
* 解析
95+
*
9096
* @return Parser
9197
*/
9298
public function parseUrl()

src/Auth/Permission.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Permission
1414
{
1515
/**
1616
* 检查权限
17+
*
1718
* @param string|array name 需要验证的规则列表,支持逗号分隔的权限规则或索引数组
1819
* @param integer uid 认证用户的id
1920
* @param string relation 如果为 'or' 表示满足任一条规则即通过验证;如果为 'and'则表示需满足所有规则才能通过验证
@@ -40,6 +41,7 @@ public function check(
4041

4142
/**
4243
* 获得权限列表
44+
*
4345
* @param integer $uid 用户id
4446
*/
4547
public function getAuthList($uid, $type)

src/Auth/Rule.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function __construct($type = 1)
2929

3030
/**
3131
* 获得权限列表
32+
*
3233
* @param integer $uid 用户id
3334
* @param integer $type 选择类型
3435
*/
@@ -92,6 +93,7 @@ public function getAuthList($uid)
9293

9394
/**
9495
* 获得权限ID列表
96+
*
9597
* @param array $gids 分组id列表
9698
* @return array
9799
*/
@@ -107,6 +109,7 @@ public function getGroupRuleidList($gids = [])
107109

108110
/**
109111
* 根据用户id获取用户组,返回值为数组
112+
*
110113
* @param integer uid 用户id
111114
* @return array 用户所属的用户组
112115
* array(

src/Command/Flash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* 闪存
2626
*
27-
* php think laket-admin:flash [--package=package_name] [--action=install]
27+
* > php think laket-admin:flash [--package=package_name] [--action=install]
2828
*
2929
* @create 2021-4-7
3030
* @author deatil

src/Command/Install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* 系统安装
2222
*
23-
* php think laket-admin:install
23+
* > php think laket-admin:install
2424
*
2525
* @create 2020-3-20
2626
* @author deatil

src/Command/Publish.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* 推送
1919
*
20-
* php think laket-admin:publish --tag=tag-name
20+
* > php think laket-admin:publish --tag=tag-name
2121
*
2222
* @create 2021-3-26
2323
* @author deatil

src/Command/ResetPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* 重设密码
2020
*
21-
* php think laket-admin:reset-password
21+
* > php think laket-admin:reset-password
2222
*
2323
* @create 2021-3-20
2424
* @author deatil

src/Controller/Base.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ abstract class Base extends BaseController
2121

2222
/**
2323
* 控制器中间件
24+
*
2425
* @var array
2526
*/
2627
protected $middleware = [];

0 commit comments

Comments
 (0)