Explorar el Código

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

evoxwht hace 4 años
padre
commit
69377723d0
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      crmeb/app/services/user/UserAddressServices.php

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

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