Commit d163b1dd authored by m1991's avatar m1991

Merge remote-tracking branch 'origin/master'

parents c3efd540 ce89f588
......@@ -48,7 +48,7 @@ public class CustomerServiceServiceImpl implements CustomerServiceService {
public R uploadImage(MultipartFile file, HttpServletRequest request, String wechatId) throws IOException {
String basePath = request.getScheme() + "://" + request.getServerName()
+ ":" + request.getServerPort()+"/upload/video/";
+ ":" + request.getServerPort();
Long time = System.currentTimeMillis();
......@@ -67,7 +67,7 @@ public class CustomerServiceServiceImpl implements CustomerServiceService {
//将内存中的数据写入磁盘
file.transferTo(newFile);
// 图片上传保存url
String videoUrl = basePath + newName;
String videoUrl = basePath + rootPath + newName;
CustomerService customerService = new CustomerService();
customerService.setWechatId(wechatId);
......
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