分享链接支持推荐标识

master
gongfuxiang 2025-01-04 21:15:36 +08:00
parent ac383dcb45
commit 66f09c93f6
1 changed files with 10 additions and 1 deletions

View File

@ -142,7 +142,16 @@
// url
share_url_copy_event() {
app.globalData.text_copy_event(app.globalData.get_page_url());
var url = app.globalData.get_page_url();
//
if(url.indexOf('referrer') == -1) {
var uid = app.globalData.get_user_cache_info('id') || null;
if(uid != null) {
var join = url.indexOf('?') == -1 ? '?' : '&';
url += join+'referrer='+uid;
}
}
app.globalData.text_copy_event(url);
},
//