Commit bdf475de0e6c57f2878ecb3f6c047712b87e14cb

Authored by zhiyangdu
1 parent 5af0f7ae

优化openInstall请求次数

Showing 1 changed file with 1 additions and 18 deletions
static/js/cnLive_openinstall.js
@@ -226,26 +226,9 @@ $.ajax({ @@ -226,26 +226,9 @@ $.ajax({
226 }, 226 },
227 success: function(res) { 227 success: function(res) {
228 channelCodeName = res.data.apkChannelName; 228 channelCodeName = res.data.apkChannelName;
229 - if (  
230 - window.location.href.indexOf("singingActivityDescription.html") > -1  
231 - ) {  
232 - wakeupOrInstallWrtcTop();  
233 - var item =  
234 - "type=web&pathPrefix=/cnBlockMore.html&channelName=901&blockId=608&blockType=27&contentType=14&title=%E4%BD%9C%E5%93%81%E5%B1%95%E7%A4%BA&moreUrl=http%3A%2F%2Fcms.cnlive.com%3A8768%2FcontentApi%2FtcysgList&isVotingSearch=%E6%8C%89%E7%BC%96%E5%8F%B7%2F%E5%90%8D%E7%A7%B0%E6%90%9C%E7%B4%A2";  
235 - wakeupOrInstallWrtcBtn(item);  
236 - } else if (window.location.href.indexOf("cnLtyInvitation.html") > -1) {  
237 - //领头雁邀请页面拉起领头雁报名页面处理  
238 - var item =  
239 - "type=web&pathPrefix=/cnLty.html&channelName=&isShowTitle=true&inviterUid=" +  
240 - sid;  
241 - wakeupOrInstallLtyInvitationTop(item);  
242 - } else {  
243 - openInstallReady();  
244 - } 229 + openInstallReady();
245 }, 230 },
246 error: function(err) { 231 error: function(err) {
247 // alert("接口请求失败!") 232 // alert("接口请求失败!")
248 } 233 }
249 }); 234 });
250 -// 本地测试  
251 -openInstallReady();