zhaopeiqing 4 years ago
parent
commit
52bcbc22a5

+ 1 - 1
src/main/java/com/ssm/controller/business/SendMessageContorller.java

@@ -129,7 +129,7 @@ public class SendMessageContorller {
 				String res = SmsUtil.sendNewSmsPost(smsUserPhoens, content);
 				Map mapObj = JSON.parseObject(res, Map.class);
 				String msgNo = mapObj.get("msg_no").toString();
-				Integer code = Integer.valueOf(map.get("code").toString());
+				Integer code = Integer.valueOf(mapObj.get("code").toString());
 				//将短信记录保存进数据库
 				SmsRecord smsRecord = new SmsRecord();
 				smsRecord.setContent(content);