From 4e5316b9c9ec3c05fb0941d41dc2236fee60141c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Wed, 8 Nov 2023 16:32:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=95=86=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E8=B4=A6=E5=8F=B7=E5=88=B0=E6=9C=9F=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/agent/controller/Account.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/app/agent/controller/Account.php b/app/agent/controller/Account.php index ca98568..7c9600d 100644 --- a/app/agent/controller/Account.php +++ b/app/agent/controller/Account.php @@ -57,6 +57,27 @@ class Account extends Controller if (!empty($get_data['keyWord'])){ $where['Account'] = ['like','%'.$get_data['keyWord'].'%']; } + //根据账号过期时间 + if ($get_data['ExpirdDay'] > -100) + { + + if (mb_strlen($where_str)>0){ + $where_str .= ' AND '; + } + if ($get_data['ExpirdDay'] == 0) + { + $where_str .= ' EndTime-4) { + $where_str .= ' TO_DAYS(EndTime) - (TO_DAYS(now()))>='.$get_data['ExpirdDay'].' AND EndTime < now() '; + } elseif ($get_data['ExpirdDay']==-4) { + $where_str .= 'TO_DAYS(EndTime) - (TO_DAYS(now()))<='.$get_data['ExpirdDay'].' '; + } elseif ($get_data['ExpirdDay'] > 0){ + $where_str .= ' TO_DAYS(EndTime) - (TO_DAYS(now()))<='.$get_data['ExpirdDay'].' AND EndTime>now() '; + // $where2 .= ' AND EndTime