Skip to content

Commit

Permalink
feat: vplus checkstatus return true
Browse files Browse the repository at this point in the history
  • Loading branch information
loo-y committed Nov 4, 2023
1 parent ef96a3d commit 98229b6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/scripts/inject/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,25 @@ const responseReplaceList = [
console.log(`error`, e)
}

return JSON.stringify(responseJson)
},
},
{
urlMatch: `/ajax/statuses/vplus/checkstatus`,
responseModify: (responseText: string) => {
let responseJson: Record<string, any> = {}
try {
responseJson = JSON.parse(responseText)
if (!_.isEmpty(responseJson?.data)) {
responseJson.data = {
...responseJson.data,
result: true,
}
}
} catch (e) {
console.log(`error`, e)
}

return JSON.stringify(responseJson)
},
},
Expand Down

0 comments on commit 98229b6

Please sign in to comment.