zhaoke 1 gadu atpakaļ
vecāks
revīzija
8fb2477d87

+ 7 - 1
public/index.html

@@ -7,6 +7,13 @@
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <title><%= webpackConfig.name %></title>
     <script src="<%= BASE_URL %>config.js"></script>
+    <script src="https://pv.sohu.com/cityjson?ie=utf-8"></script>
+    <script type="text/javascript">
+      var Ip = returnCitySN['cip']
+      var cityname = returnCitySN['cname']
+      localStorage.setItem('Ip', Ip)
+      localStorage.setItem('cityname', cityname)
+    </script>
   </head>
   <body>
     <noscript>
@@ -14,6 +21,5 @@
     </noscript>
     <div id="app"></div>
     <!-- built files will be auto injected -->
-    <!-- <script src="https://pv.sohu.com/cityjson?ie=utf-8"></script> -->
   </body>
 </html>

+ 2 - 1
src/utils/request-base.js

@@ -99,7 +99,8 @@ service.interceptors.response.use(
           EndTime,
           OperateResult,
           Ident: Ident ?? '',
-          AppId: '9'
+          AppId: '9',
+          OperateIP: localStorage.getItem('Ip') ?? null
         }
       }
       if (islogin) {

+ 2 - 1
src/utils/request-gat.js

@@ -99,7 +99,8 @@ service.interceptors.response.use(
           EndTime,
           OperateResult,
           Ident: Ident ?? '',
-          AppId: '9'
+          AppId: '9',
+          OperateIP: localStorage.getItem('Ip') ?? null
         }
       }
       if (islogin) {

+ 2 - 1
src/utils/request.js

@@ -100,7 +100,8 @@ service.interceptors.response.use(
           EndTime,
           OperateResult,
           Ident: Ident ?? '',
-          AppId: '9'
+          AppId: '9',
+          OperateIP: localStorage.getItem('Ip') ?? null
         }
       }
       if (islogin) {

+ 1 - 0
src/views/dashboard/index.vue

@@ -406,6 +406,7 @@ export default {
               Ident: '',
               OperateResult: '已跳转',
               AppId: '9',
+              OperateIP: localStorage.getItem('Ip') ?? null,
               OperatorId: getUserId(),
               LogId: getLogId(),
               UserName: getUserName()