From 338258d9f064e75dc2343d0f67c7312b95eb54d8 Mon Sep 17 00:00:00 2001 From: devil Date: Mon, 21 Sep 2020 16:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BE=E5=BA=A6=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E5=AF=BC=E5=85=A5=E6=8E=92=E9=99=A4=E5=B7=B2?= =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/UserAddressService.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/application/service/UserAddressService.php b/application/service/UserAddressService.php index c785a5915..5ddf918d4 100644 --- a/application/service/UserAddressService.php +++ b/application/service/UserAddressService.php @@ -569,13 +569,14 @@ class UserAddressService // 地址存在则不重复添加 $where = [ - 'name' => $params['name'], - 'tel' => $params['tel'], - 'province' => $params['province'], - 'city' => $params['city'], - 'county' => $params['county'], - 'address' => $params['address'], - 'user_id' => $params['user']['id'], + 'name' => $params['name'], + 'tel' => $params['tel'], + 'province' => $params['province'], + 'city' => $params['city'], + 'county' => $params['county'], + 'address' => $params['address'], + 'user_id' => $params['user']['id'], + 'is_delete_time' => 0, ]; $address = Db::name('UserAddress')->where($where)->find(); if(!empty($address))