|
@@ -30,4 +30,25 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script> -->
|
|
</script> -->
|
|
|
|
|
+ <script>
|
|
|
|
|
+ // -------------增加访问量--------------------
|
|
|
|
|
+ // 初始接口域名
|
|
|
|
|
+ const baseUrl = 'https://sit-cctvyunzhan.4dage.com'
|
|
|
|
|
+
|
|
|
|
|
+ const requestBody = {
|
|
|
|
|
+ num: 'CGYJ_CODE',
|
|
|
|
|
+ type: 'visit'
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ fetch(`${baseUrl}/api/visit/add`, {
|
|
|
|
|
+ method: 'POST',
|
|
|
|
|
+ body: JSON.stringify(requestBody),
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ 'Content-Type': 'application/json'
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(response => response.json())
|
|
|
|
|
+ .then(data => console.log('访问量增加'))
|
|
|
|
|
+ .catch(error => console.error(error));
|
|
|
|
|
+ </script>
|
|
|
</html>
|
|
</html>
|