百度小程序地址导入排除已删除

feat/task1-c-wallet
devil 2020-09-21 16:06:11 +08:00
parent 54764fe7f2
commit 338258d9f0
1 changed files with 8 additions and 7 deletions

View File

@ -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))