mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 17:40:07 +08:00
[fix] some known bug
This commit is contained in:
parent
fe85d33c25
commit
f09aa322d6
@ -192,8 +192,11 @@ $ docker run -itd --rm -e USER_NAME=你的B站登录账号 -e USER_PASSWORD=你
|
|||||||
|
|
||||||
- 通过配置文件进行传入(能保留登录状态,自定义配置)
|
- 通过配置文件进行传入(能保留登录状态,自定义配置)
|
||||||
|
|
||||||
1. 下载[配置文件](https://raw.githubusercontent.com/lkeme/BiliHelper-personal/master/conf/user.ini.example)
|
[//]: # (1. 下载[配置文件](https://raw.githubusercontent.com/lkeme/BiliHelper-personal/master/conf/user.ini.example))
|
||||||
2. 修改
|
|
||||||
|
[//]: # (2. 修改)
|
||||||
|
1. 下载[配置文件夹](https://github.com/lkeme/BiliHelper-personal/tree/master/profile) `注意是文件夹,可以完整下载后提出来`
|
||||||
|
2. 重命名 `profile/example -> profile/user` , 修改 `profile/user/config/user.ini`
|
||||||
3. 通过下面的命令进行挂载并运行
|
3. 通过下面的命令进行挂载并运行
|
||||||
|
|
||||||
```shell script
|
```shell script
|
||||||
|
|||||||
@ -120,6 +120,11 @@ class CheckUpdate extends BasePluginRW
|
|||||||
$branch = getConf('app.branch');
|
$branch = getConf('app.branch');
|
||||||
$url = $this->resource->get($branch . '_raw_url');
|
$url = $this->resource->get($branch . '_raw_url');
|
||||||
$payload = [];
|
$payload = [];
|
||||||
|
// 防止错误拉取
|
||||||
|
if (is_null($url)) {
|
||||||
|
return json_decode('{"code":404}', false);
|
||||||
|
}
|
||||||
|
//
|
||||||
return Request::getJson(false, 'other', $url, $payload);
|
return Request::getJson(false, 'other', $url, $payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -204,6 +204,10 @@ class Judge extends BasePlugin
|
|||||||
Log::warning("風機委員: 獲取案件{$case_id}衆議觀點失敗 {$response['code']} -> {$response['message']}");
|
Log::warning("風機委員: 獲取案件{$case_id}衆議觀點失敗 {$response['code']} -> {$response['message']}");
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
// 防止为空 null
|
||||||
|
if (is_null($response['data']['list']) || $response['data']['total'] == 0) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
return $response['data']['list'];
|
return $response['data']['list'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -349,4 +353,3 @@ class Judge extends BasePlugin
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user