|
|
package com.yoho.unions.helper;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.rabbitmq.tools.json.JSONUtil;
|
|
|
import com.yoho.core.common.utils.JsonUtil;
|
|
|
import com.yoho.message.sdk.common.model.SendMessageRspBo;
|
|
|
import com.yoho.message.sdk.service.product.ISendProductMessage;
|
|
|
import com.yoho.unions.common.utils.DateUtil;
|
...
|
...
|
@@ -43,7 +46,7 @@ public class SendMessageHelper { |
|
|
// return;
|
|
|
// }
|
|
|
try {
|
|
|
String timeStr = DateUtil.long2DateStr(time * 1000, DateUtil.DATE_TIME_FORMAT);
|
|
|
String timeStr = DateUtil.long2DateStr(Long.valueOf(time) * 1000, DateUtil.DATE_TIME_FORMAT);
|
|
|
SendMessageRspBo sendMessageRspBo=null;
|
|
|
if (type == 1) {
|
|
|
//预估佣金提醒
|
...
|
...
|
@@ -61,7 +64,7 @@ public class SendMessageHelper { |
|
|
//申请成功提醒
|
|
|
sendMessageRspBo=iSendProductMessage.joinSuccessNotice(Integer.toString(uid), timeStr);
|
|
|
}
|
|
|
log.info("sendMessage end,uid is {},type is {},time is {},amount is {},sendMessageRspBo is {}.",uid,type,timeStr,amount,sendMessageRspBo);
|
|
|
log.info("sendMessage end,uid is {},type is {},time is {},amount is {},sendMessageRspBo is {}.",uid,type,timeStr,amount, JsonUtil.objectToJSON(sendMessageRspBo));
|
|
|
} catch (Exception e) {
|
|
|
log.error("sendMessage error,e is {}.",e);
|
|
|
}
|
...
|
...
|
|