diff --git a/docs/DOC.md b/docs/DOC.md index a54ac80..a704c2f 100644 --- a/docs/DOC.md +++ b/docs/DOC.md @@ -26,6 +26,15 @@ |php_zlib | |php_mbstring | +## 用户文件夹含义 + ++ user + - cache (包含登录状态、以及其他插件缓存) + - config (个人的配置、以及其他插件的设置) + - device (设备参数文件) + - log (日志文件) + - task (排程文件) + ## Composer + [Composer 安装与使用](https://www.runoob.com/w3cnote/composer-install-and-usage.html) @@ -108,7 +117,7 @@ ```shell script $ git clone https://github.com/lkeme/BiliHelper-personal.git -$ cp profile/example profile/user +$ cp -r profile/example profile/user ``` 2. 使用 [composer](https://getcomposer.org/download/) 工具进行安装 diff --git a/plugin/AwardRecords/AwardRecords.php b/plugin/AwardRecords/AwardRecords.php index f8e9e66..5dbe811 100644 --- a/plugin/AwardRecords/AwardRecords.php +++ b/plugin/AwardRecords/AwardRecords.php @@ -16,6 +16,7 @@ */ use Bhp\Api\Lottery\V1\ApiAward; +use Bhp\Api\XLive\GeneralInterface\V1\ApiGuardBenefit; use Bhp\Api\XLive\LotteryInterface\V1\ApiAnchor; use Bhp\Api\XLive\Revenue\V1\ApiWallet; use Bhp\Cache\Cache; @@ -213,7 +214,7 @@ class AwardRecords extends BasePlugin */ protected function bonus(string $title = '航海回馈'): bool { - $response = ApiAnchor::awardRecord(); + $response = ApiGuardBenefit::winListByUser(); // if ($response['code']) { Log::warning("获奖记录: 获取{$title}失败 {$response['code']} -> {$response['message']}"); diff --git a/src/Request/Request.php b/src/Request/Request.php index 6c854f1..7197e21 100644 --- a/src/Request/Request.php +++ b/src/Request/Request.php @@ -403,7 +403,7 @@ class Request extends SingleTon * @param mixed ...$params * @return mixed */ - protected static function __putJson(?bool $associative = null, mixed...$params): mixed + protected static function _putJson(?bool $associative = null, mixed...$params): mixed { $response = self::put(...$params); // JSON_UNESCAPED_UNICODE @@ -567,4 +567,4 @@ class Request extends SingleTon return $response->getHeaders(); } -} \ No newline at end of file +}