Closed 2410024100 closed 4 years ago
connectWebsocket () { const url = 'wss://iat-api.xfyun.cn/v2/iat' 。。。。。。
希望作者加下判断哈。。。测试环境是http。。。正式环境才是https QQ:2410024100
var ishttps = 'https:' == location.protocol ? true: false; const url = ishttps?'wss://iat-api.xfyun.cn/v2/iat':'ws://iat-api.xfyun.cn/v2/iat'
到时加了。。。我再拉哈 哈哈
这个需要你自己处理下。
connectWebsocket () { const url = 'wss://iat-api.xfyun.cn/v2/iat' 。。。。。。
希望作者加下判断哈。。。测试环境是http。。。正式环境才是https QQ:2410024100