文件app/services/user/UserAddressServices.php
if ($addressInfo['id'] == 0) {
$where = [
['uid', '=', $uid],
['real_name', '=', $addressInfo['real_name']],
['phone', '=', $addressInfo['phone']],
['detail', '=', $addressInfo['detail']],
['is_del', '=', 0]
];
if (isset($addressInfo['address']['city_id'])) {
$where += ['city_id', '=', $addressInfo['address']['city_id']];
}
$res = $this->dao->getCount($where);
if ($res) throw new ValidateException('地址已存在,请勿重复添加');
}
修改完成即可解决导入报错的问题
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}