|
|
@@ -29,16 +29,16 @@ class TenantRegisterLogic extends BaseLogic
|
|
|
}
|
|
|
$info = Tenant::where('tel',$params['mobile'])->findOrEmpty();
|
|
|
if(!$info->isEmpty()){
|
|
|
- throw new \Exception('手机号已存在门店');
|
|
|
- }
|
|
|
- $info = MasterWorkerRegister::where('mobile',$params['mobile'])->findOrEmpty();
|
|
|
- if(!$info->isEmpty()){
|
|
|
- throw new \Exception('手机号已注册工程师');
|
|
|
- }
|
|
|
- $info = MasterWorker::where('mobile',$params['mobile'])->findOrEmpty();
|
|
|
- if(!$info->isEmpty()){
|
|
|
- throw new \Exception('手机号已占用');
|
|
|
+ throw new \Exception('手机号已存在租户');
|
|
|
}
|
|
|
+ // $info = MasterWorkerRegister::where('mobile',$params['mobile'])->findOrEmpty();
|
|
|
+ // if(!$info->isEmpty()){
|
|
|
+ // throw new \Exception('手机号已注册工程师');
|
|
|
+ // }
|
|
|
+ // $info = MasterWorker::where('mobile',$params['mobile'])->findOrEmpty();
|
|
|
+ // if(!$info->isEmpty()){
|
|
|
+ // throw new \Exception('手机号已占用');
|
|
|
+ // }
|
|
|
isset($params['city']) && $params['province'] = getProvinceByCityId($params['city']);
|
|
|
//$params['province'] && $params['area_name'] = $postageRegion[$params['province']]['name'].$postageRegion[$params['city']]['name'];
|
|
|
TenantRegister::create([
|