-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: response type for naifu #253
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我没有 naifu 环境,如果可以的话需要你自己测试一下。确认无误后可以合并。
但是似乎仍然存在一个bug,在sandbox和adapter-red下测试没问题, |
添加了一个修改
|
src/index.ts
Outdated
if (config.type === 'naifu') { | ||
return forceDataPrefix(res.data?.trimEnd().slice(27)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
俺感觉这个逻辑可以合并到下面一行,直接统一 trimEnd 就行。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
修复一个关于naifu的bug