1
gDD 2014-08-18 19:35:47 +08:00 via iPhone 1
如果是通过调用各种API生成的二维码,我感觉是URL在转换成为二维码的时候没对URL做encode URL造成的?
|
2
jucelin 2014-08-18 19:35:59 +08:00 1
短链接跳转
|
3
Mihuwa OP @gDD 使用的是 http://s.jiathis.com/qrcode.php 接口,请问有更好用的吗?
|
6
Mihuwa OP |
7
gDD 2014-08-18 19:48:44 +08:00 1
@Mihuwa
[&utm_medium=share&utm_source=weixin]被当作了jiathis.com这个网站的参数,而不是[url=]的一部分 所以需要对URL: http://www.mihuwa.com/topic/54608/?utm_campaign=Share&utm_medium=share&utm_source=weixin 做一次 encodeURIComponent( "http://..." ) 得到 http%3A%2F%2Fwww.mihuwa.com%2Ftopic%2F54608%2F%3Futm_campaign%3DShare%26utm_medium%3Dshare%26utm_source%3Dweixin 在传到jiathis.com的API上: http://s.jiathis.com/qrcode.php?url=http%3A%2F%2Fwww.mihuwa.com%2Ftopic%2F54608%2F%3Futm_campaign%3DShare%26utm_medium%3Dshare%26utm_source%3Dweixin 就好了。 |
9
gDD 2014-08-18 19:57:04 +08:00
|