Merge pull request #296 from darcygail/master

fix YQL bugs:the chat '&' doesn't encoded
This commit is contained in:
zuiidea
2017-05-17 16:59:21 +08:00
committed by GitHub
+1 -1
View File
@@ -50,7 +50,7 @@ const fetch = (options) => {
})
})
} else if (fetchType === 'YQL') {
url = `http://query.yahooapis.com/v1/public/yql?q=select * from json where url='${options.url}?${qs.stringify(options.data)}'&format=json`
url = `http://query.yahooapis.com/v1/public/yql?q=select * from json where url='${options.url}?${encodeURIComponent(qs.stringify(options.data))}'&format=json`
data = null
}