Skip to content

Commit

Permalink
修复参数名和删除多余参数
Browse files Browse the repository at this point in the history
  • Loading branch information
YXL76 committed Sep 13, 2020
1 parent 92612bc commit bfece83
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion module/send_text.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
module.exports = (query, request) => {
query.cookie.os = 'pc'
const data = {
id: query.playlist,
type: 'text',
msg: query.msg,
userIds: '[' + query.user_ids + ']',
Expand Down
2 changes: 1 addition & 1 deletion module_types/artist_mv.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RequestBaseConfig } from './base'

export interface ArtistMVRequestConfig extends RequestBaseConfig {
artistId: string | number
id: string | number
limit: string | number
offset: string | number
}
2 changes: 1 addition & 1 deletion module_types/artist_sub.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RequestBaseConfig } from './base'

export interface ArtistSubRequestConfig extends RequestBaseConfig {
artistId: string | number
id: string | number
t: 1 | 0
}
7 changes: 1 addition & 6 deletions module_types/dj_recommend.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import { RequestBaseConfig } from './base'

export interface DjRecommendRequestConfig extends RequestBaseConfig {
rid: string
limit?: number
offset?: number
asc: 0 | 1 | 'true' | 'false'
}
export type DjRecommendRequestConfig = RequestBaseConfig
1 change: 0 additions & 1 deletion module_types/send_text.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import { RequestBaseConfig } from './base'

export interface SendTextRequestConfig extends RequestBaseConfig {
msg: string
id: string | number
user_ids: string
}
2 changes: 1 addition & 1 deletion module_types/toplist_artist.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface ToplistArtistRequestConfig extends RequestBaseConfig {
type: number
type?: 1 | 2 | 3 | 4
}

0 comments on commit bfece83

Please sign in to comment.