From d5efeb86837b190ea055fc14884535780e70b18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Wed, 14 May 2025 09:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=90=86=E5=95=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Account.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/api/controller/Account.php b/app/api/controller/Account.php index cbbf647..c04ef92 100644 --- a/app/api/controller/Account.php +++ b/app/api/controller/Account.php @@ -84,15 +84,17 @@ class Account $data = $_GET; $url = 'https://juip.com/product/ApiCreateOrder'; + + if ((strpos($data['account'], ',') !== false || strpos($data['account'], '、') !== false || strpos($data['account'], ',') !== false)) { + $data = [ + 'Code' => 0, + 'Message' => '请操作单个账户', + ]; + echo json_encode($data); + die; + } + if ($data['type'] == 3) { - if ((strpos($data['account'], ',') !== false || strpos($data['account'], '、') !== false || strpos($data['account'], ',') !== false)) { - $data = [ - 'Code' => 0, - 'Message' => '请续费单个账户', - ]; - echo json_encode($data); - die; - } $account_model = new ProductAccount; $info = $account_model->getOne(['Account'=>$data['account'],"PackageId" => $data['package']],'ProductName,PackageName,Account,ConnectCount,StartTime,EndTime');