Commit 73c15e7a authored by nanahira's avatar nanahira

add http settings

parent 86cc8aa9
This diff is collapsed.
...@@ -44,11 +44,11 @@ ...@@ -44,11 +44,11 @@
"testEnvironment": "node" "testEnvironment": "node"
}, },
"dependencies": { "dependencies": {
"koishi-thirdeye": "^11.1.14" "koishi-thirdeye": "^11.1.16"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.10.4", "koishi": "^4.10.6",
"koishi-plugin-pics": "^10.2.1" "koishi-plugin-pics": "^10.6.1"
}, },
"devDependencies": { "devDependencies": {
"@koishijs/plugin-console": "^4.7.1", "@koishijs/plugin-console": "^4.7.1",
......
...@@ -9,9 +9,6 @@ export * from './config'; ...@@ -9,9 +9,6 @@ export * from './config';
export default class PicSourceSina extends PicSourcePlugin( export default class PicSourceSina extends PicSourcePlugin(
PicSourceSinaConfig, PicSourceSinaConfig,
) { ) {
@Inject(true)
private http: Quester;
override async randomPic(tags: string[]) { override async randomPic(tags: string[]) {
const data = await this.http.get(this.config.getUrl(), { const data = await this.http.get(this.config.getUrl(), {
params: { params: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment