tencentyun / wafer

Wafer - 快速构建具备弹性能力的微信小程序
https://github.com/tencentyun/wafer
Other
2.16k stars 332 forks source link

获取信道连接地址接口在spring环境中无返回值的问题 #27

Open zhonghq opened 7 years ago

zhonghq commented 7 years ago

获取信道连接地址接口在官方demo下可以正常发挥信道服务器连接地址。然而当我把sdk集成到springboot中时此接口没有返回兑现,经过调试发现了一个编码错误 方法为tunnelService.handle() 原代码 if (request.getMethod().toUpperCase() == "GET") { handleGet(handler, options); } if (request.getMethod().toUpperCase() == "POST") { handlePost(handler, options); } 修改后代码 if (request.getMethod().toUpperCase().equals("GET")) { handleGet(handler, options); } if (request.getMethod().toUpperCase().equals("POST")) { handlePost(handler, options); } 修改后此接口正常

zhonghq commented 7 years ago

有没有哪位见识过这种问题的解释一下为何在sevlet居然没有问题