Commit c7594dee authored by hujun's avatar hujun

商铺相同地址判断

parent c345b9dd
......@@ -79,6 +79,14 @@ class HouseService
}
try {
$num = $this->m_house->getHouseListTotal(['internal_address' => $data['internal_address']]);
if ($num > 1) {
$result['status'] = 'fail';
$result['msg'] = '该商铺存在相同地址';
return $result;
}
if (isset($data['landlord_phone'])) {
if ($is_app == 1) {
$landlord_phone_new = json_decode($data['landlord_phone'], true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment