(本文档仅供参考)
需求说明
与第三方系统集成之后,如果在url传参包含特殊符号,如传一段sql:select col from table where col='xxxx' ,会导致where col后面的值没有传过去。
解决方案
在url传参的时候如果包含特殊符号的话,需要进行转义,如类似以下转义:
http://localhost:18000/smartbi/vision/openresource.jsp?resid=I4028884d0167059e059ed308016705ac41f4004b¶msInfo=[{"name":"test","value":"select categoryid from categories where name=%27%E8%82%89/%E5%AE%B6%E7%A6%BD%27%22"}]