...
|
...
|
@@ -336,30 +336,29 @@ public class InBoxFacade extends BaseNoticeFacade{ |
|
|
* 鉴定结束发货,发送站内信和短信
|
|
|
* @param uid
|
|
|
* @param prdName
|
|
|
* @param sizeName
|
|
|
* @param productCode
|
|
|
* @param wayBillCode
|
|
|
*/
|
|
|
public void sendInboxSmsWhenAppraiseFinished(int uid, String prdName, String sizeName, String productCode,String wayBillCode){
|
|
|
public void sendInboxSmsWhenAppraiseFinished(int uid, String prdName, String productCode,String wayBillCode){
|
|
|
|
|
|
try {
|
|
|
executorService.execute(() -> {
|
|
|
String params = buildParams(prdName, sizeName, productCode);
|
|
|
String params = buildParams(prdName, productCode);
|
|
|
InboxReqVO req = buildInboxReqVO(uid, params, InboxBusinessTypeEnum.INBOX_DELIVERY_APPRAISE_FINISHED);
|
|
|
|
|
|
InBoxResponse resp = inBoxSDK.addInbox(req);
|
|
|
log.info("record sendInboxSmsWhenAppraiseFinished inbox msg, uid {}, prdName {}, resp {}",uid, prdName, resp);
|
|
|
|
|
|
log.info("record sendInboxSmsWhenAppraiseFinished inbox msg, uid {}, prdName {}, wayBillCode {}, resp {}", uid, prdName, wayBillCode, resp);
|
|
|
|
|
|
//短信
|
|
|
String phone = userProxyService.getMobile(uid);
|
|
|
if (StringUtils.isBlank(phone)){
|
|
|
log.warn("sendInboxSmsComm sms send fail,sellerUid {}, prdName {} timelimitDesc {}",uid, prdName);
|
|
|
log.warn("sendInboxSmsWhenAppraiseFinished sms send fail,sellerUid {}, prdName {} timelimitDesc {}",uid, prdName);
|
|
|
return;
|
|
|
}
|
|
|
List<String> mobileList = Arrays.asList(phone);
|
|
|
String content = getReplacedContent(InboxBusinessTypeEnum.SMS_DELIVERY_APPRAISE_FINISHED.getContent(),prdName,sizeName,productCode,wayBillCode);
|
|
|
String content = getReplacedContent(InboxBusinessTypeEnum.SMS_DELIVERY_APPRAISE_FINISHED.getContent(), prdName ,productCode,wayBillCode);
|
|
|
sendSmsService.smsSendByMobile(content, mobileList);
|
|
|
log.info("sendInboxSmsWhenAppraiseFinished sms content {}, mobileList {}", content, mobileList);
|
|
|
});
|
|
|
|
|
|
} catch (Exception e) {
|
...
|
...
|
|