Commit 22fd4ff5 authored by codezwjava's avatar codezwjava

专属客服上传客服二维码图片2

parent d163b1dd
......@@ -66,12 +66,12 @@ public class CustomerServiceServiceImpl implements CustomerServiceService {
}
//将内存中的数据写入磁盘
file.transferTo(newFile);
// 图片上传保存url
String videoUrl = basePath + rootPath + newName;
//入库地址
String serviceUrl = basePath + "/upload/" + newName;
CustomerService customerService = new CustomerService();
customerService.setWechatId(wechatId);
customerService.setWechatImgUrl(videoUrl);
customerService.setWechatImgUrl(serviceUrl);
customerServiceMapper.insert(customerService);
return R.ok("上传成功");
}
......
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