Skip to content
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

表情搜索403报错的问题修复 #469

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

iqovo
Copy link

@iqovo iqovo commented Jan 24, 2022

经过实测发现是源站搜狗表情弃用了接口
采用了新的接口导致的,更换接口与解析方式后已可以正常使用该功能
表情搜索修复后

修复表情搜索403的问题
@yinxin630
Copy link
Owner

Please fix CI errors


data.forEach(element=>{

img_arr.push({image:element.thumbSrc,width:90,height:90});
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

width and height should not be fixed value. It should get from image data.


var img_arr=[];

data.forEach(element=>{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should just return data.map(/* do something */)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants