|
|
|
@@ -262,6 +262,8 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
JSONObject jsonObjectResult = JSONObject.parseObject(result); |
|
|
|
String ret = jsonObjectResult.get("ret").toString(); |
|
|
|
String batchNo = jsonObjectResult.get("data").toString(); |
|
|
|
String resultMsg = jsonObjectResult.get("msg").toString(); |
|
|
|
wxMsg.setReturnResult(jsonObjectResult.toJSONString()); |
|
|
|
if (ret.equals(EnumMsgSendStatus.MSG_SEND_SUCCESS.getCode().toString())) { |
|
|
|
wxMsg.setSendstatus(EnumMsgSendStatus.MSG_SEND_SUCCESS.getCode()); |
|
|
|
} else { |
|
|
|
@@ -285,7 +287,8 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
addMsgCallback(wxMsg,batchNo); |
|
|
|
return new ResultData(Result.SUCCESS, "短信发送中,您可在短信明细中查看发送状态",id); |
|
|
|
} else { |
|
|
|
return new ResultData(ErrorCode.MSG_SEND_ERROR.getCode(), "短信发送发败"); |
|
|
|
return new ResultData(ErrorCode.MSG_SEND_INTERFACE_ERROR.getCode(), |
|
|
|
ErrorCode.MSG_SEND_INTERFACE_ERROR.getMessage()+":"+resultMsg); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|