From 853e9d485514852990e107544d80968be3e64c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Fri, 23 May 2025 15:08:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A0=E9=99=A4=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E7=9A=84=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/manager/controller/Account.php | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/app/manager/controller/Account.php b/app/manager/controller/Account.php index cfab0e9..8cfbd99 100644 --- a/app/manager/controller/Account.php +++ b/app/manager/controller/Account.php @@ -71,23 +71,27 @@ class Account extends Controller $where = [ 'Id' => $data['id'], - 'DeleteTag' => 0 + 'DeleteTag' => 0, + 'EndTime' => ['<',date('Y-m-d H:i:s')] ]; $account_info = $account_model->getOne($where); - $update_data['DeleteTag'] = 1; + if ($account_info) { - if ($account_info['ProductId'] == 29) { - $url = "http://124.236.113.166:18702/api/agent/deleteAcct/apikey/80cf4f64e990b78a9fc5eb/account/".$account_info['Account']; - linkcurl($url,'GET',[],[],0); - } elseif ($account_info['ProductId'] == 3 || $account_info['ProductId'] == 26) { - $url = "http://106.119.166.87:18702/api/agent/deleteAcct/apikey/80cf4f64e990b78a9fc5eb/account/".$account_info['Account']; - linkcurl($url,'GET',[],[],0); + $update_data['DeleteTag'] = 1; + + if ($account_info['ProductId'] == 29) { + $url = "http://124.236.113.166:18702/api/agent/deleteAcct/apikey/80cf4f64e990b78a9fc5eb/account/".$account_info['Account']; + linkcurl($url,'GET',[],[],0); + } elseif ($account_info['ProductId'] == 3 || $account_info['ProductId'] == 26) { + $url = "http://106.119.166.87:18702/api/agent/deleteAcct/apikey/80cf4f64e990b78a9fc5eb/account/".$account_info['Account']; + linkcurl($url,'GET',[],[],0); + } + + $account_model->updateOne($where,$update_data); } - $account_model->updateOne($where,$update_data); - echo json_encode(['Code'=>30000,]); } }