diff --git a/README.md b/README.md index dc3e7c2..e1428ba 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@

- + diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 2b03900..1ebc696 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,26 @@ [comment]: <> () +## v2.0.1.220911 alpha (2022-09-11) + +### Added + +- 大會員積分插件 + +### Changed + +- + +### Fixed + +- 命令行解析錯誤 +- 掃碼登錄異常 +- + +### Remarks + +- + ## v2.0.0.220822 alpha (2022-08-22) ### Added diff --git a/plugin/Login/Login.php b/plugin/Login/Login.php index ea7324e..9c1cec1 100644 --- a/plugin/Login/Login.php +++ b/plugin/Login/Login.php @@ -100,7 +100,7 @@ class Login extends BasePlugin $this->login(); } // Token存在\校验有效性\否则调用登录 - $this->keepAlive($token, $r_token); + $this->keepLogin(); } /** diff --git a/resources/version.json b/resources/version.json index 41ae476..d8df29b 100644 --- a/resources/version.json +++ b/resources/version.json @@ -7,10 +7,10 @@ "dev_raw_url": "https://gh.notifyplus.cf/https://github.com/lkeme/BiliHelper-personal/blob/dev/resources/version.json", "master_purge_url": "https://cdn.staticaly.com/gh/lkeme/BiliHelper-personal/master/resources/version.json", "dev_purge_url": "https://cdn.staticaly.com/gh/lkeme/BiliHelper-personal/dev/resources/version.json", - "version": "2.0.0.220822", + "version": "2.0.1.220911", "des": "程序有更新,请及时线上查看更新哦~", - "time": "2022年08月18日", + "time": "2022年09月11日", "ini_version": "0.0.1", "ini_des": "配置有更新,请及时线上查看更新哦~", - "ini_time": "2022年08月18日" + "ini_time": "2022年09月11日" } diff --git a/src/Cache/Cache.php b/src/Cache/Cache.php index 654dc90..9eba319 100644 --- a/src/Cache/Cache.php +++ b/src/Cache/Cache.php @@ -83,6 +83,7 @@ class Cache extends SingleTon { // Set a key // $users->set('bob', ['email' => 'bob@site.com', 'password' => '123456']); + // echo "Set|{$classname}|Key|{$key}|Value|{$value}" . PHP_EOL; self::getInstance()->getCache($classname)->set($key, $value); } @@ -97,6 +98,8 @@ class Cache extends SingleTon // Get a key // $user = $users->get('bob'); // echo 'Bob, your email is ' . $user['email']; + // $value = self::getInstance()->getCache($classname)->get($key); + // echo "Get|{$classname}|Key|{$key}|Value|{$value}" . PHP_EOL; return self::getInstance()->getCache($classname)->get($key); } @@ -156,4 +159,4 @@ class Cache extends SingleTon array_shift($backtraces); return pathinfo(basename($backtraces[2]['file']))['filename']; } -} \ No newline at end of file +} diff --git a/src/Console/Console.php b/src/Console/Console.php index 2e9f58b..4005917 100644 --- a/src/Console/Console.php +++ b/src/Console/Console.php @@ -92,7 +92,7 @@ LOGO; */ protected function transArgv(array $argv): array { - if (!str_contains($argv[1], ':')) { + if (isset($argv[1]) && !str_contains($argv[1], ':')) { unset($argv[1]); } return array_values($argv);