Commit 533c3073 by zhiwj

短信计费

parent 75e18eee
......@@ -106,7 +106,7 @@ public class SmsRecordDTO implements Serializable {
/**
* 会员ecuId
*/
@NotNull(message = "会员ecuId不能为空", groups = SmsRecordValid.class)
// @NotNull(message = "会员ecuId不能为空", groups = SmsRecordValid.class)
private Long ecuId;
/**
......
......@@ -116,12 +116,13 @@ public class SmsRecordApiServiceImpl implements SmsRecordApiService {
if (StringUtils.equals("86", smsRecordDTO.getNationCode()) || StringUtils.equals("+86", smsRecordDTO.getNationCode())) {
ServiceResponse paramResult = ValidUtil.allCheckValidate(smsRecordDTO, SmsRecordDTO.SmsRecordValid.class);
if (!paramResult.isSuccess()) {
logger.info("短信验证不通过:{}", paramResult.getMessage());
return paramResult;
}
GicMQClient client = GICMQClientUtil.getClientInstance();
try {
String json = JSON.toJSONString(smsRecordDTO);
logger.info("收到国内短信计费信息:{}", json);
// logger.info("收到国内短信计费信息:{}", json);
client.sendMessage("smsMq", json);
// this.run(json);
} catch (Exception e) {
......
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