From bce0f82f7ded67673a8a6cd6d358a665a81882e0 Mon Sep 17 00:00:00 2001 From: sszdot Date: Thu, 12 Dec 2024 15:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afix=20=E3=80=90=E5=8E=9F=20=20=E5=9B=A0=E3=80=91?= =?UTF-8?q?=EF=BC=9A=E9=A2=84=E6=A3=80=E6=9F=A5=20=E5=8F=AF=E4=BB=A5=20?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E9=94=99=E8=AF=AF=E8=BF=94=E5=9B=9E=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=20=E3=80=90=E8=BF=87=20=20=E7=A8=8B=E3=80=91=EF=BC=9A?= =?UTF-8?q?=E5=95=86=E9=93=BA=E6=B7=BB=E5=8A=A0=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=B6=E5=80=99=20=E5=85=88=E6=A3=80=E6=9F=A5=E5=95=86?= =?UTF-8?q?=E9=93=BA=E5=90=8D=E7=A7=B0=20=E6=9C=80=E4=BD=8E=E6=B6=88?= =?UTF-8?q?=E8=B4=B9=20=E6=9C=80=E5=A4=A7=E9=87=8D=E9=87=8F=E4=B8=8A?= =?UTF-8?q?=E9=99=90=20=E9=BB=98=E8=AE=A4=E8=BF=90=E8=B4=B9=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=89=93=E5=8C=85=E8=B4=B9=E5=AD=97=E6=AE=B5=20?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E4=B8=BA=E7=A9=BA=20=E3=80=90=E5=BD=B1=20=20?= =?UTF-8?q?=E5=93=8D=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FlyCube/MpApi/Controller/AdminController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FlyCube/MpApi/Controller/AdminController.class.php b/FlyCube/MpApi/Controller/AdminController.class.php index 0e50523..c0577a4 100644 --- a/FlyCube/MpApi/Controller/AdminController.class.php +++ b/FlyCube/MpApi/Controller/AdminController.class.php @@ -34,7 +34,7 @@ class AdminController extends PublicController echo json_encode(array('status' => 0, 'msg' => '没有权限')); exit; } - if ($_REQUEST['name']) { + if ($_REQUEST['name'] && $_REQUEST['price_min'] && $_REQUEST['weight_max'] && $_REQUEST['default_transport_price'] && $_REQUEST['default_pack_price']) { //生成shop_id随机值 $arr = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); $shop_id = ""; @@ -83,7 +83,7 @@ class AdminController extends PublicController //总管理员 可接收任何shop_id 非总管理员 只可以调用自身shop_id 否则会中断 $this->isPower(); - if ($_REQUEST['shop_id'] && $_REQUEST['name']) { + if ($_REQUEST['shop_id'] && $_REQUEST['name'] && $_REQUEST['price_min'] && $_REQUEST['weight_max'] && $_REQUEST['default_transport_price'] && $_REQUEST['default_pack_price']) { //data数据 $data['name'] = $_REQUEST['name']; $data['waiter'] = $_REQUEST['waiter'];