|
@@ -237,13 +237,14 @@ public class InviteRecordController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/invite/batch", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/invite/batch", method = RequestMethod.POST)
|
|
|
- private ModelMap inviteByBatch(Long enUU, Long userUU, String invitations, String source, String userTel, String businessCode) {
|
|
|
|
|
|
|
+ private ModelMap inviteByBatch(Long enUU, Long userUU, String invitations, String source, String userTel, String businessCode) throws UnsupportedEncodingException {
|
|
|
enUU = checkByBusinessCode(enUU, businessCode);
|
|
enUU = checkByBusinessCode(enUU, businessCode);
|
|
|
userUU = checkByUserTel(userUU, userTel);
|
|
userUU = checkByUserTel(userUU, userTel);
|
|
|
if (StringUtils.isEmpty(enUU) || StringUtils.isEmpty(userUU)) {
|
|
if (StringUtils.isEmpty(enUU) || StringUtils.isEmpty(userUU)) {
|
|
|
throw new IllegalAccessError("企业UU或用户UU不能为空");
|
|
throw new IllegalAccessError("企业UU或用户UU不能为空");
|
|
|
}
|
|
}
|
|
|
- List<InvitationRecord> records = JSON.parseArray(invitations, InvitationRecord.class);
|
|
|
|
|
|
|
+ String str = URLDecoder.decode(invitations, "UTF-8");
|
|
|
|
|
+ List<InvitationRecord> records = JSON.parseArray(str, InvitationRecord.class);
|
|
|
logger.log("邀请注册", "批量新增邀请,来源" + source, invitations.length() > 1000 ? invitations.substring(0, 1000).concat("...") : invitations, userUU, enUU);
|
|
logger.log("邀请注册", "批量新增邀请,来源" + source, invitations.length() > 1000 ? invitations.substring(0, 1000).concat("...") : invitations, userUU, enUU);
|
|
|
return inviteRecordService.inviteByBatch(enUU, userUU, records, source);
|
|
return inviteRecordService.inviteByBatch(enUU, userUU, records, source);
|
|
|
}
|
|
}
|