医生证书上传方式修改

master
gongzhenkun 2 years ago
parent a8d9f510c3
commit 4b6b245be6

@ -322,6 +322,10 @@ public class FileUtils
{
Base64.Decoder decoder = Base64.getDecoder();
if (imgStr.contains("data:image/jpeg;base64,")) {
// 去掉base64前缀 data:image/jpeg;base64,
imgStr = imgStr.substring(imgStr.indexOf(",", 1) + 1);
}
try
{
//Base64解码

@ -149,10 +149,6 @@ public class SysLoginService
}
public AjaxResult loginForAppFillInfo(AppRegisterReq req) {
if (StringUtils.isNotEmpty(req.getMedicalLicense())) {
log.info("MedicalLicense is not null.");
req.setMedicalLicense(FileUtils.GenerateImage(req.getMedicalLicense()));
}
log.info("login for app fill info req :{}", req);
// 查询sys_user数据
SysUser sysUser = userService.selectUserByPhone(req.getPhone());

@ -151,9 +151,6 @@ public class WechatServiceImpl implements IWechatService {
public String loginForApp(LoginForAppReq req) {
// 查询手机号是否存在医生信息
TDoctor tDoctor = new TDoctor();
if (StringUtils.isNotEmpty(req.getMedicalLicense())) {
req.setMedicalLicense(FileUtils.GenerateImage(req.getMedicalLicense()));
}
BeanUtils.copyProperties(req, tDoctor);
TDoctor currentDoctor = tDoctorMapper.selectTDoctorByPhone(req.getPhone());
TWechatUser wechatUser = new TWechatUser();

Loading…
Cancel
Save