acgwatch 地址栏重写故障

master
IoTgod 5 years ago
parent a78d5c8790
commit 2f0a56e2ac
  1. 8
      server/cn/etc/nginx/nginx.conf
  2. 2
      server/cn/home/www/cdn/dplayer/setup.js

@ -402,10 +402,16 @@ http {
}
server {
listen 80;
server_name www.acg.watch;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
listen 443 ssl;
listen 80;
server_name www.acg.watch; #1

@ -34,7 +34,7 @@ const dp = new DPlayer({
//lstn for recording play time to cookie
var timeUpdate_count=0;
dp.on('timeupdate',function dpTimeRecord(){if(g_vId!=234&&g_vId!=0)cookie.set('vTime_'+g_vId,dp.video.currentTime);if(timeUpdate_count++>15){ $.post("https://video.api.yimian.xyz/video_fp.php",{"fp":fp,"id":g_vId,"seek":dp.video.currentTime,"ip":returnCitySN.cip});timeUpdate_count=0;window.history.replaceState(null, null, "https://cn.yimian.xyz/video/video.php?id="+g_vId);}
dp.on('timeupdate',function dpTimeRecord(){if(g_vId!=234&&g_vId!=0)cookie.set('vTime_'+g_vId,dp.video.currentTime);if(timeUpdate_count++>15){ $.post("https://video.api.yimian.xyz/video_fp.php",{"fp":fp,"id":g_vId,"seek":dp.video.currentTime,"ip":returnCitySN.cip});timeUpdate_count=0;window.history.replaceState(null, null, "https://www.acg.watch/video.php?id="+g_vId);}
if(typeof attach==="function") attach();});
//lstn for the video to the end

Loading…
Cancel
Save