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();