mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 01:20:08 +08:00
[fix] Request
This commit is contained in:
parent
26dfb9ca56
commit
fe85d33c25
11
docs/DOC.md
11
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/) 工具进行安装
|
||||
|
||||
@ -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']}");
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user