Skip to content

Commit e0f66fb

Browse files
committed
update 5.1.0
- 增加接口分享功能 - 增加ResponseSuccess的default参数,及不注解desc时报错的问题。
1 parent c8056cd commit e0f66fb

13 files changed

Lines changed: 566 additions & 120 deletions

src/Auth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected static function getTokenCode(string $password): string
104104
* @param string $password
105105
* @return string
106106
*/
107-
protected function createToken(string $password): string
107+
public function createToken(string $password): string
108108
{
109109
$authConfig = $this->authConfig;
110110
$data = [
@@ -120,7 +120,7 @@ protected function createToken(string $password): string
120120
* @param $token
121121
* @return bool
122122
*/
123-
protected function checkToken(string $token, string $password): bool
123+
public function checkToken(string $token, string $password): bool
124124
{
125125
$authConfig = $this->authConfig;
126126
if (empty($password)){

0 commit comments

Comments
 (0)