|
@@ -40,7 +40,7 @@ import java.util.*;
|
|
*/
|
|
*/
|
|
|
|
|
|
@Controller
|
|
@Controller
|
|
-@RequestMapping("/approval")
|
|
|
|
|
|
+@RequestMapping("/wechat/approval")
|
|
public class ApprovalController {
|
|
public class ApprovalController {
|
|
@Autowired
|
|
@Autowired
|
|
private ApprovalOrderService approvalOrderService;
|
|
private ApprovalOrderService approvalOrderService;
|
|
@@ -175,7 +175,8 @@ public class ApprovalController {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
//创建分享对象 并存入数据库
|
|
//创建分享对象 并存入数据库
|
|
- String postParams = StrUtils.getPostParamsStr(req); //data:image/png;base64,iVBORw0
|
|
|
|
|
|
+ //String postParams = StrUtils.getPostParamsStr(req); //data:image/png;base64,iVBORw0
|
|
|
|
+ String postParams = req.getParameter("file");
|
|
String[] shareImgUrlArr = org.apache.commons.lang3.StringUtils.split(postParams, ",");
|
|
String[] shareImgUrlArr = org.apache.commons.lang3.StringUtils.split(postParams, ",");
|
|
String imgUrl = "";
|
|
String imgUrl = "";
|
|
HashMap<String, String> map = new HashMap<String, String>();
|
|
HashMap<String, String> map = new HashMap<String, String>();
|
|
@@ -212,14 +213,14 @@ public class ApprovalController {
|
|
if(flag){
|
|
if(flag){
|
|
imgUrl = imgFilePath + fileName;
|
|
imgUrl = imgFilePath + fileName;
|
|
responseJson.setReturnCode(200);
|
|
responseJson.setReturnCode(200);
|
|
- responseJson.addResponseKeyValue("imgUrl",ResultInfo.CONTRACT_IMAGE+imgUrl);
|
|
|
|
|
|
+ responseJson.addResponseKeyValue("imgUrl",ResultInfo.CONTRACT_IMAGE+fileName);
|
|
}else{
|
|
}else{
|
|
/*imgUrl = "/iamberry/default.png";*/
|
|
/*imgUrl = "/iamberry/default.png";*/
|
|
responseJson.setReturnCode(500);
|
|
responseJson.setReturnCode(500);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ responseJson.setReturnCode(500);
|
|
//返回值拼凑
|
|
//返回值拼凑
|
|
/*String requurl = req.getContextPath();//获取web项目的路径*/
|
|
/*String requurl = req.getContextPath();//获取web项目的路径*/
|
|
|
|
|