From 546dbd655ceae9d2c1e75a8f17fb5585f7a0920a Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Thu, 15 Sep 2022 13:51:24 +0800 Subject: [PATCH] fix bug --- app/controller/Address.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/Address.php b/app/controller/Address.php index e6a7f6f..74c99c5 100644 --- a/app/controller/Address.php +++ b/app/controller/Address.php @@ -86,7 +86,7 @@ class Address if (empty($userid)) { return show("请登录!",NEED_LOGIN); } - if(!empty($post['id'])) { + if(empty($post['id'])) { return show("参数不正确!"); } $d = Db::name("app_address")->where("id",$post['id'])->find();