Hi sdf

in DubboResponsePlugin,  the result provide by Apache dubbo,

You can see if this result has been garbled.  code like this :

final Object result = exchange.getAttribute(Constants.DUBBO_RPC_RESULT);



sdf <lfg0422g...@163.com> 于2021年5月24日周一 下午3:49写道:

>
>
>
> soul tuning dubbo backend service response message Chinese messy code
>
>
> soul version 2.3.0
> dubbo backend service dubbo version is 2.7.6
>
>
> Direct access to the dubbo interface returns the following message, with
> errorMsg displayed normally
>
>
> >> {
> >>   "msg": "SUCCESS",
> >>   "code": "0000",
> >>   "flag": "S",
> >>   "data": {
> >>     "orderId": "367131013865906176",
> >>     "orderStatus": 1,
> >>     "signUrl": null,
> >>     "externalOrderId": "311212112312313",
> >>     "originalUrl": "",
> >>     "templateId": 20002,
> >>     "errorMsg": "成功"
> >>   }
>
> >> }
>
>
> Access to the back-end interface via soul
>
>
> >> {
> >>   "msg": "SUCCESS",
> >>   "code": "0000",
> >>   "flag": "S",
> >>   "data": {
> >>     "orderId": "367131013865906176",
> >>     "orderStatus": 1,
> >>     "signUrl": null,
> >>     "externalOrderId": "311212112312313",
> >>     "originalUrl": "",
> >>     "templateId": 20002,
> >>     "errorMsg": "??"
> >>   }
> >> }
> Code Trace Discovery
> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>
> The result of the execution is already garbled, and still not solved by
> urldecode transcoding
>
>
>
>
>
>
>
>
>
>
> 在 2021-05-24 15:33:11,"Zhang Yonglun" <zhangyong...@apache.org> 写道:
> >Hi,
> >
> >Can you translate your question to English?
> >
> >--
> >
> >Zhang Yonglun
> >Apache ShenYu (Incubating)
> >Apache ShardingSphere
> >
> >
> >sdf <lfg0422g...@163.com> 于2021年5月24日周一 下午3:30写道:
> >
> >> soul 版本 2.3.0
> >> dubbo后端服务 dubbo版本为 2.7.6
> >>
> >>
> >>
> >>
> >>
> >>
> >> 直接访问dubbo接口返回报文如下,errorMsg 正常显示
> >>
> >>
> >> {
> >>   "msg": "SUCCESS",
> >>   "code": "0000",
> >>   "flag": "S",
> >>   "data": {
> >>     "orderId": "367131013865906176",
> >>     "orderStatus": 1,
> >>     "signUrl": null,
> >>     "externalOrderId": "311212112312313",
> >>     "originalUrl": "",
> >>     "templateId": 20002,
> >>     "errorMsg": "成功"
> >>   }
> >> }
> >>
> >>
> >> 通过soul 访问后端接口
> >>
> >>
> >> {
> >>   "msg": "SUCCESS",
> >>   "code": "0000",
> >>   "flag": "S",
> >>   "data": {
> >>     "orderId": "367131013865906176",
> >>     "orderStatus": 1,
> >>     "signUrl": null,
> >>     "externalOrderId": "311212112312313",
> >>     "originalUrl": "",
> >>     "templateId": 20002,
> >>     "errorMsg": "??"
> >>   }
> >> }
> >>
> >>
> >> 代码跟踪 发现
> >>
> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
> >> 执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~
>

Reply via email to