外卖公众号小程序长链转短链的方法已有,速看!

外卖公众号小程序长链转短链的方法已有,速看!

之前美团等平台的推广路径链接都非常长,要插入文字回复时会失败,现在有解决办法了喔~

接下来给大家以美团外卖的推广路径为例示范如何解决。

01.将美团的推广路径长链解码‍

美团的推广路径是这个(长链):

/index/pages/h5/h5?weburl=https%3A%2F%2Fclick.meituan.com%2Ft%3Ft%3D1%26c%3D1%26p%3DOWMpZ-uzIFOVe6JyOONs3dXuqV0qcAf-r-KCvHdXiNej4xCqMxp88d40kBpNgztIAPe8eitdEs1sN_OL2yM2E_lkwBIdcDGWXOKzXh1Q_Fow-lzpLfJCB_fBrI47Ty-Gq_59tX6tC14cXpD_QOvWw9Wnx5hGN6ZCTydEwEGX-Zg-F2FJRNWq08EBqKSJFn6H1WH5dB1yzHzks_x1BSUNUtHX8uC05Cllbg3ve4nmi0Te58mKiK1Qivn2bjL-yr3HBHXJ0IbslV_J5rh9UwXgC2LESIDlAf_Ys19LcAA_y5svmbp7f4KCCLhcjVdSq_DDJoh0UsDKQZc4wfsYlvrkBepw6kQcbkLY0KbQxP2pxABQ8tEuXwEU7DqTjfUUQR7_Bkj9rq-pKuM33577SwObeTChdEL5K079ZspIbKGdqBVVYyhfiuwmKnpbprd44m_2Bmb5mpXjT7kvE2Eg5I4NG5d-Rg1QBKx91INMu0dfJ7JWudurRRYIHa_Gusx21tdBdjxM3PGEzUdZ-7s0WFj5NY-6hfOZ3Fj36OqIWavtftDLqvGB4AzLPAI-BLfyHTf3BGywMm2aJ5ZQbGZIgJUEanZss09xDlAMbqteSdAc8mFo6Mu3iWgCxORHrnST_LNzX8yPIb3Y6w9rwsGWhsLcjj5w4fnAD2U87Mm5x27Gvsg&lch=cps:waimai:5:669dc60208f861e36c7355a243a7fdf3:qq&f_token=1&f_userId=1

weburl 后面是一个完整的路径是通过url encode的,通过解码,可以把完成路径解码出来。

解码网址:

http://tool.chinaz.com/tools/urlencode.aspx

将原始推广链接复制填入对话框,点击“解码”。

外卖公众号小程序长链转短链的方法已有,速看!

解码后链接是这样:

/index/pages/h5/h5?weburl=https://click.meituan.com/t?t=1&c=1&p=OWMpZ-uzIFOVe6JyOONs3dXuqV0qcAf-r-KCvHdXiNej4xCqMxp88d40kBpNgztIAPe8eitdEs1sN_OL2yM2E_lkwBIdcDGWXOKzXh1Q_Fow-lzpLfJCB_fBrI47Ty-Gq_59tX6tC14cXpD_QOvWw9Wnx5hGN6ZCTydEwEGX-Zg-F2FJRNWq08EBqKSJFn6H1WH5dB1yzHzks_x1BSUNUtHX8uC05Cllbg3ve4nmi0Te58mKiK1Qivn2bjL-yr3HBHXJ0IbslV_J5rh9UwXgC2LESIDlAf_Ys19LcAA_y5svmbp7f4KCCLhcjVdSq_DDJoh0UsDKQZc4wfsYlvrkBepw6kQcbkLY0KbQxP2pxABQ8tEuXwEU7DqTjfUUQR7_Bkj9rq-pKuM33577SwObeTChdEL5K079ZspIbKGdqBVVYyhfiuwmKnpbprd44m_2Bmb5mpXjT7kvE2Eg5I4NG5d-Rg1QBKx91INMu0dfJ7JWudurRRYIHa_Gusx21tdBdjxM3PGEzUdZ-7s0WFj5NY-6hfOZ3Fj36OqIWavtftDLqvGB4AzLPAI-BLfyHTf3BGywMm2aJ5ZQbGZIgJUEanZss09xDlAMbqteSdAc8mFo6Mu3iWgCxORHrnST_LNzX8yPIb3Y6w9rwsGWhsLcjj5w4fnAD2U87Mm5x27Gvsg&lch=cps:waimai:5:669dc60208f861e36c7355a243a7fdf3:qq&f_token=1&f_userId=1

02.识别网址‍

“/index/pages/h5/h5?weburl=”后面的就是网址:

https://click.meituan.com/t?t=1&c=1&p=OWMpZ-uzIFOVe6JyOONs3dXuqV0qcAf-r-KCvHdXiNej4xCqMxp88d40kBpNgztIAPe8eitdEs1sN_OL2yM2E_lkwBIdcDGWXOKzXh1Q_Fow-lzpLfJCB_fBrI47Ty-Gq_59tX6tC14cXpD_QOvWw9Wnx5hGN6ZCTydEwEGX-Zg-F2FJRNWq08EBqKSJFn6H1WH5dB1yzHzks_x1BSUNUtHX8uC05Cllbg3ve4nmi0Te58mKiK1Qivn2bjL-yr3HBHXJ0IbslV_J5rh9UwXgC2LESIDlAf_Ys19LcAA_y5svmbp7f4KCCLhcjVdSq_DDJoh0UsDKQZc4wfsYlvrkBepw6kQcbkLY0KbQxP2pxABQ8tEuXwEU7DqTjfUUQR7_Bkj9rq-pKuM33577SwObeTChdEL5K079ZspIbKGdqBVVYyhfiuwmKnpbprd44m_2Bmb5mpXjT7kvE2Eg5I4NG5d-Rg1QBKx91INMu0dfJ7JWudurRRYIHa_Gusx21tdBdjxM3PGEzUdZ-7s0WFj5NY-6hfOZ3Fj36OqIWavtftDLqvGB4AzLPAI-BLfyHTf3BGywMm2aJ5ZQbGZIgJUEanZss09xDlAMbqteSdAc8mFo6Mu3iWgCxORHrnST_LNzX8yPIb3Y6w9rwsGWhsLcjj5w4fnAD2U87Mm5x27Gvsg&lch=cps:waimai:5:669dc60208f861e36c7355a243a7fdf3:qq&f_token=1&f_userId=1

03.通过浏览器打开网址,同时复制浏览器形成的链接是这样:‍

https://market.waimai.meituan.com/gd/single.html?el_biz=waimai&gundam_id=2KAWnD&el_page=gundam.loader&urpid=74060.161951250423.24412203.0&appkey=669dc60208f861e36c7355a243a7fdf3%3Aqq&source=wandie&_rdt=1&noguide=1&utm_term=&utm_campaign=other&utm_medium=MU&channel=union&utm_source=60413&utm_content=1380426742014976088

04.回到解码网址,将上面链接复制过去,点击“编码”

此时链接是:

https%3A%2F%2Fmarket.waimai.meituan.com%2Fgd%2Fsingle.html%3Fel_biz%3Dwaimai%26gundam_id%3D2KAWnD%26el_page%3Dgundam.loader%26urpid%3D74060.161951250423.24412203.0%26appkey%3D669dc60208f861e36c7355a243a7fdf3%253Aqq%26source%3Dwandie%26_rdt%3D1%26noguide%3D1%26utm_term%3D%26utm_campaign%3Dother%26utm_medium%3DMU%26channel%3Dunion%26utm_source%3D60413%26utm_content%3D1380426742014976088

外卖公众号小程序长链转短链的方法已有,速看!

05.在上面链接开头添加上原路径weburl参数

即“/index/pages/h5/h5?weburl=”

此时链接是:

/index/pages/h5/h5?weburl=https%3A%2F%2Fmarket.waimai.meituan.com%2Fgd%2Fsingle.html%3Futm_term%3D74060.cps.24412203%26el_biz%3Dwaimai%26gundam_id%3D2KAWnD%26utm_campaign%3DAffProg%26utm_medium%3Dwandie%26el_page%3Dgundam.loader%26urpid%3D74060.161941038093.24412203.0%26appkey%3D669dc60208f861e36c7355a243a7fdf3%253Aqq%26source%3Dwandie%26_rdt%3D1%26utm_source%3D%26utm_content%3D%26noguide%3D1%26utm_term%3D%26utm_campaign%3Dother%26utm_medium%3DMU%26channel%3Dunion%26utm_source%3D60413%26utm_content%3D1380426742014976088

06.将这个路径生成小程序链接

<a href=’#’ data-miniprogram-appid=’wxde8ac0a21135c07d’ data-miniprogram-path=’/index/pages/h5/h5?weburl=/index/pages/h5/h5?weburl=
https%3A%2F%2Fmarket.waimai.meituan.com%2Fgd%2Fsingle.html%3Futm_term%3D74060.cps.24412203%26el_biz%3Dwaimai%26gundam_id%3D2KAWnD%26utm_campaign%3DAffProg%26utm_medium%3Dwandie%26el_page%3Dgundam.loader%26urpid%3D74060.161941038093.24412203.0%26appkey%3D669dc60208f861e36c7355a243a7fdf3%253Aqq%26source%3Dwandie%26_rdt%3D1%26utm_source%3D%26utm_content%3D%26noguide%3D1%26utm_term%3D%26utm_campaign%3Dother%26utm_medium%3DMU%26channel%3Dunion%26utm_source%3D60413%26utm_content%3D1380426742014976088′>美团外卖券</a>

这样一番操作,就可以通过客服系统后台的公众号消息群发,将长链转化成的短链成功插入文字回复,发给用户了。

 

扫描下方微信二维码

获取芝麻客服新增功能信息

怎么查看公众号粉丝的访问轨迹?​公众号助手

原创文章,作者:小芝麻,如若转载,请注明出处:https://xiaokefu.com.cn/blog/1494.html