|
@@ -87,15 +87,15 @@ public class OpenTenantController {
|
|
throw new BizException(5003, "请等待审核完成");
|
|
throw new BizException(5003, "请等待审核完成");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- Long tenantId = tenantStaff.getTenantId();
|
|
|
|
- TenantInfo tenantInfo = tenantInfoService.getById(tenantId);
|
|
|
|
- if(tenantInfo == null){
|
|
|
|
- throw new BizException("机构不存在");
|
|
|
|
- }
|
|
|
|
- if (Boolean.FALSE.equals(tenantInfo.getEnableFlag())) {
|
|
|
|
- String configValue = sysConfigService.findConfigValue("customer_service_phone");
|
|
|
|
- throw new BizException(5004, "机构已停用,请联系客服/n" + (StringUtils.isEmpty(configValue) ? "" : configValue));
|
|
|
|
- }
|
|
|
|
|
|
+// Long tenantId = tenantStaff.getTenantId();
|
|
|
|
+// TenantInfo tenantInfo = tenantInfoService.getById(tenantId);
|
|
|
|
+// if(tenantInfo == null){
|
|
|
|
+// throw new BizException("机构不存在");
|
|
|
|
+// }
|
|
|
|
+// if (Boolean.FALSE.equals(tenantInfo.getEnableFlag())) {
|
|
|
|
+// String configValue = sysConfigService.findConfigValue("customer_service_phone");
|
|
|
|
+// throw new BizException(5004, "机构已停用,请联系客服/n" + (StringUtils.isEmpty(configValue) ? "" : configValue));
|
|
|
|
+// }
|
|
tenantStaff.setWxOpenid(openId);
|
|
tenantStaff.setWxOpenid(openId);
|
|
tenantStaffService.updateById(tenantStaff);
|
|
tenantStaffService.updateById(tenantStaff);
|
|
return HttpResponseResult.succeed();
|
|
return HttpResponseResult.succeed();
|