From 843d793803025454556e83a138ab79f9579493fc Mon Sep 17 00:00:00 2001 From: yxq Date: Fri, 7 Jun 2024 16:29:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=20=E8=80=83?= =?UTF-8?q?=E5=8B=A4=E6=89=93=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LearunApp-2.2.0/pages/AttendanceCard/list.vue | 7 ++++++- .../LearunApp-2.2.0/pages/AttendanceCardTeacher/list.vue | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue index 9ee1afd5c..d793e5d1b 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue @@ -326,7 +326,12 @@ this.requestBase("https://mp.weixin.qq.com/intp/getuserclientip").then(res=>{ this.HIDE_LOADING() let res_ = res[1] - if(res_.data&&['1.190.222.35','1.190.222.34','1.190.222.40'].includes(res_.data.client_ip)){ + let client_ip_start = '1.190.222.' + let arr = [] + for(let i=34;i<47;i++){ + arr.push(client_ip_start+i) + } + if(res_.data&&arr.includes(res_.data.client_ip)){ this.isInternalNet = true let postData = {AIsOut:0,ClockPlace:'已连接校园网'} TOAST&&this.NAV_TO(`./single_zc`,postData,true) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardTeacher/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardTeacher/list.vue index 5cfa13e06..8c3419e9b 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardTeacher/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardTeacher/list.vue @@ -325,7 +325,12 @@ this.requestBase("https://mp.weixin.qq.com/intp/getuserclientip").then(res=>{ this.HIDE_LOADING() let res_ = res[1] - if(res_.data&&['1.190.222.35','1.190.222.34','1.190.222.40'].includes(res_.data.client_ip)){ + let client_ip_start = '1.190.222.' + let arr = [] + for(let i=34;i<47;i++){ + arr.push(client_ip_start+i) + } + if(res_.data&&arr.includes(res_.data.client_ip)){ this.isInternalNet = true let postData = {AIsOut:0,ClockPlace:'已连接校园网'} TOAST&&this.NAV_TO(`./single_zc`,postData,true)