Browse Source

修复地址删除后无法添加的问题

evoxwht 4 năm trước cách đây
mục cha
commit
69377723d0

+ 2 - 1
crmeb/app/services/user/UserAddressServices.php

@@ -174,7 +174,8 @@ class UserAddressServices extends BaseServices
                     ['uid', '=', $uid],
                     ['uid', '=', $uid],
                     ['real_name', '=', $addressInfo['real_name']],
                     ['real_name', '=', $addressInfo['real_name']],
                     ['phone', '=', $addressInfo['phone']],
                     ['phone', '=', $addressInfo['phone']],
-                    ['detail', '=', $addressInfo['detail']]
+                    ['detail', '=', $addressInfo['detail']],
+                    ['is_del', '=', 0]
                 ] + $where);
                 ] + $where);
             if ($res) throw new ValidateException('地址已存在,请勿重复添加');
             if ($res) throw new ValidateException('地址已存在,请勿重复添加');
         }
         }