Comments (6)
+1
from weapp-php-server-sdk.
-
你说的这个是因为 $packet 之前是 json,解析了之后才是数组。你可以看一下具体的代码执行顺序。
-
不知道是什么的 signature?
from weapp-php-server-sdk.
[2017-10-29 14:50:23][DEBUG] POST https://ws.qcloud.com/get/wsurl => [200] {
"[请求]": {
"data": "{"receiveUrl":"https://vox-api.cn/tunnel","protocolType":"wss"}",
"tcId": "ffff613b6c46f44bfd6a7f04e58396ca",
"tcKey": "abc-",
"signature": "4f24a372798e8fad5c0ef8583412ac9ac3fd7735"
},
"[响应]": {
"code": 0,
"message": "OK",
"data": {
"tunnelId": "02ca30d0-740a-4b02-9d74-6f5d7f78f3ec",
"connectUrl": "wss://ws.qcloud.com/ws/test?tunnelId=02ca30d0-740a-4b02-9d74-6f5d7f78f3ec"
}
},
"[耗时]": "73ms"
}
这是日志,没有返回signature
from weapp-php-server-sdk.
这个签名只是用来校验数据的,不是给信道用的。直接连接信道即可。
from weapp-php-server-sdk.
但是sdk里TunnelService.php82行拿不到会报错[捂脸]
from weapp-php-server-sdk.
不是的,这个地方是可以拿到的。。
整个流程是这样的:
------- ------------- -----------
| 用户 | -> | 业务服务器 | -> | 信道服务 |
| | <- | | <- | |
------ ------------- -----------
你截图的那个信道服务器不是我们小程序专用的,报错是因为你的 sdk.config 配置错误了。。要把 https://ws.qcloud.com/
修改为 https://tunnul.ws.qcloud.la/
from weapp-php-server-sdk.
Related Issues (15)
- PHP 业务环境支持 MySQL 扩展
- 安装了mysql扩展成功了,但是为什么无法启动mysql服务? HOT 1
- readme文档有误
- update sdk后登录失败 HOT 1
- 如果要上传服务端的文件只能是通过微信开发者工具上传么 HOT 1
- deleted
- 请问能否发布一套独立的sdk?不依赖腾讯云服务器 HOT 1
- 对于Mysql的操作
- Call to undefined method QCloud_WeApp_SDK\Auth\LoginService::getHttpHeader() HOT 1
- AuthApi.php中关于处理非代理方式请求session_key的问题 HOT 1
- AuthApi:检查登录部分异常处理存在混淆 HOT 2
- 如何使用MySQL 操作类进行模糊查询 HOT 1
- php-sdk信道服务将正常tunnelId当无效信道返回
- wafer下线后进行项目迁移,tunnelServer怎么办
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weapp-php-server-sdk.