...
|
...
|
@@ -706,70 +706,10 @@ public class InBoxFacade extends BaseNoticeFacade{ |
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 通知买家商品无法鉴定
|
|
|
* @param request
|
|
|
*/
|
|
|
public void noticeBuyerAppraiseUnsure(@NonNull BuyerNoticeSender.Request request){
|
|
|
Integer uid = request.getUid();
|
|
|
Long orderCode = request.getOrderCode();
|
|
|
String params = buildParams(orderCode);
|
|
|
InboxReqVO inboxMessage = buildInboxReqVO(uid, params, InboxBusinessTypeEnum.NOTICE_BUYER_WHEN_APPRAISE_UNSURE);
|
|
|
String smsContent = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_BUYER_WHEN_APPRAISE_UNSURE.getContent(), orderCode);
|
|
|
try {
|
|
|
log.info("noticeBuyerAppraiseUnsure,uid {} request is {}", uid, request);
|
|
|
executorService.execute(() -> {
|
|
|
InBoxResponse inBoxResponse = inBoxSDK.addInbox(inboxMessage);
|
|
|
log.info("noticeBuyerAppraiseUnsure inbox send success, message is {} res is {}", inboxMessage, inBoxResponse);
|
|
|
|
|
|
//发push
|
|
|
SendMessageRspBo bo = ufoSendService.identifyFail(String.valueOf(uid),String.valueOf(orderCode));
|
|
|
log.info("noticeBuyerAppraiseUnsure push buyer uid is {}, orderCode is {}, result is {}", uid, orderCode, JSON.toJSONString(bo));
|
|
|
|
|
|
//sms
|
|
|
String phone = userProxyService.getMobile(uid);
|
|
|
if (StringUtils.isBlank(phone)) {
|
|
|
log.warn("noticeBuyerAppraiseUnsure sms send fail,uid {} can not find phone", uid);
|
|
|
return;
|
|
|
}
|
|
|
sendSmsService.smsSendByMobile(smsContent, Arrays.asList(phone));
|
|
|
log.info("noticeBuyerAppraiseUnsure sms send success,uid {}", uid);
|
|
|
});
|
|
|
} catch (Exception e) {
|
|
|
log.warn("noticeBuyerAppraiseUnsure fail,uid {}", uid, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 通知买家商品无法鉴定
|
|
|
* @param request
|
|
|
*/
|
|
|
public void noticeBuyerDetectNotPass(@NonNull BuyerNoticeSender.Request request){
|
|
|
Integer uid = request.getUid();
|
|
|
Long orderCode = request.getOrderCode();
|
|
|
String params = buildParams(orderCode);
|
|
|
InboxReqVO inboxMessage = buildInboxReqVO(uid, params, InboxBusinessTypeEnum.NOTICE_BUYER_WHEN_DETECTION_NOT_PASS);
|
|
|
String smsContent = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_BUYER_WHEN_DETECTION_NOT_PASS.getContent(), orderCode);
|
|
|
try {
|
|
|
log.info("noticeBuyerDetectNotPass,uid {} request is {}", uid, request);
|
|
|
executorService.execute(() -> {
|
|
|
InBoxResponse inBoxResponse = inBoxSDK.addInbox(inboxMessage);
|
|
|
log.info("noticeBuyerDetectNotPass inbox send success, message is {} res is {}", inboxMessage, inBoxResponse);
|
|
|
|
|
|
//sms
|
|
|
String phone = userProxyService.getMobile(uid);
|
|
|
if (StringUtils.isBlank(phone)) {
|
|
|
log.warn("noticeBuyerDetectNotPass sms send fail,uid {} can not find phone", uid);
|
|
|
return;
|
|
|
}
|
|
|
sendSmsService.smsSendByMobile(smsContent, Arrays.asList(phone));
|
|
|
log.info("noticeBuyerDetectNotPass sms send success,uid {}", uid);
|
|
|
});
|
|
|
} catch (Exception e) {
|
|
|
log.warn("noticeBuyerDetectNotPass fail,uid {}", uid, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public void buyerCancelBeforeDepotReceive(@NonNull BuyerOrder buyerOrder, String compesant, SellerOrderGoods sog, boolean useDepositGoods) {
|
|
|
buyerNoticeFacade.buyerCancelBeforeDepotReceive(buyerOrder, compesant, sog);
|
...
|
...
|
|