...
|
...
|
@@ -6,6 +6,7 @@ import com.yohobuy.ufo.model.enums.InboxBusinessTypeEnum; |
|
|
import com.yohobuy.ufo.model.order.common.OrderAttributes;
|
|
|
import com.yohobuy.ufo.model.order.common.TabType;
|
|
|
import com.yohobuy.ufo.model.order.constants.SkupType;
|
|
|
import com.yohoufo.common.helper.NoticeMessageFormatter;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrder;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderGoods;
|
|
|
import com.yohoufo.inboxclient.model.InBoxResponse;
|
...
|
...
|
@@ -45,6 +46,9 @@ public class BaseNoticeFacade { |
|
|
@Autowired
|
|
|
private UserProxyService userProxyService;
|
|
|
|
|
|
@Autowired
|
|
|
private NoticeMessageFormatter noticeMessageFormatter;
|
|
|
|
|
|
public Notice newNotice(int uid) {
|
|
|
return new Notice(uid);
|
|
|
}
|
...
|
...
|
@@ -199,6 +203,7 @@ public class BaseNoticeFacade { |
|
|
log.warn("{}, send sms fail, get content fail", logPrefix, e);
|
|
|
return null;
|
|
|
});
|
|
|
|
|
|
if (Objects.nonNull(smsContent)) {
|
|
|
try {
|
|
|
String phone = userProxyService.getMobile(uid);
|
...
|
...
|
@@ -264,7 +269,7 @@ public class BaseNoticeFacade { |
|
|
}
|
|
|
|
|
|
protected String getReplacedContent(String content, Object... params) {
|
|
|
return MessageFormatter.arrayFormat(content, params).getMessage();
|
|
|
return noticeMessageFormatter.filterWallet(MessageFormatter.arrayFormat(content, params).getMessage());
|
|
|
}
|
|
|
|
|
|
protected String buildSmsContent(InboxBusinessTypeEnum ibte, Object... params) {
|
...
|
...
|
|