feat(sms): 华为短信插件信任所有HTTPS证书- 在华为短信插件中添加X509TrustManager实现
- 覆盖checkClientTrusted方法以跳过客户端证书验证 - 覆盖checkServerTrusted方法以跳过服务端证书验证- 实现getAcceptedIssuers方法返回null以接受所有颁发者 - 为所有新增方法添加@Override注解确保正确重写 fix(im): 补充IM对话服务实现注解 -为getTalkByUser方法添加@Override注解 fix(member): 补充会员服务实现注解 - 为modifyPass方法添加@Override注解 fix(promotion): 补充促销服务实现注解- 为getGoodsSkuPromotionMap方法添加@Override注解 - 为wrapperPromotionMapList方法添加@Override注解 fix(system): 补充地区服务实现注解- 为updateById方法添加@Override注解 -为save方法添加@Override注解 fix(logistics): 补充顺丰物流插件实现注解 - 为createOrder方法添加@Override注解
This commit is contained in:
@@ -46,7 +46,7 @@ public class ImTalkServiceImpl extends ServiceImpl<ImTalkMapper, ImTalk> impleme
|
||||
|
||||
@Autowired
|
||||
private ImMessageService imMessageService;
|
||||
|
||||
@Override
|
||||
public ImTalk getTalkByUser(String userId) {
|
||||
LambdaQueryWrapper<ImTalk> queryWrapper = new LambdaQueryWrapper<>();
|
||||
AuthUser currentUser = Objects.requireNonNull(UserContext.getCurrentUser());
|
||||
|
||||
@@ -59,6 +59,7 @@ public class ShunfengPlugin implements LogisticsPlugin {
|
||||
*
|
||||
* @param orderDetailVO
|
||||
*/
|
||||
@Override
|
||||
public String createOrder(OrderDetailVO orderDetailVO) {
|
||||
StoreDetailService storeService = SpringContextUtil.getBean(StoreDetailService.class);
|
||||
StoreDeliverGoodsAddressDTO storeDeliverGoodsAddressDTO = storeService.getStoreDeliverGoodsAddressDto(orderDetailVO.getOrder().getStoreId());
|
||||
|
||||
@@ -335,6 +335,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> impleme
|
||||
}
|
||||
|
||||
@DemoSite
|
||||
@Override
|
||||
public Member modifyPass(String oldPassword, String newPassword) {
|
||||
AuthUser tokenUser = UserContext.getCurrentUser();
|
||||
if (tokenUser == null) {
|
||||
|
||||
@@ -87,6 +87,7 @@ public class PromotionServiceImpl implements PromotionService {
|
||||
* @param goodsSkuId 商品skuId
|
||||
* @return 当前促销活动集合
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> getGoodsSkuPromotionMap(String storeId, String goodsSkuId) {
|
||||
String storeIds = storeId + "," + PromotionTools.PLATFORM_ID;
|
||||
List<PromotionGoods> promotionGoodsList = promotionGoodsService.findSkuValidPromotion(goodsSkuId, storeIds);
|
||||
@@ -99,7 +100,7 @@ public class PromotionServiceImpl implements PromotionService {
|
||||
promotionGoodsService.deletePromotionGoodsByGoods(goodsIds);
|
||||
kanjiaActivityGoodsService.deleteByGoodsIds(goodsIds);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> wrapperPromotionMapList(List<PromotionGoods> promotionGoodsList) {
|
||||
Map<String, Object> promotionMap = new HashMap<>();
|
||||
for (PromotionGoods promotionGoods : promotionGoodsList) {
|
||||
|
||||
@@ -303,14 +303,15 @@ public class HuaweiSmsPlugin implements SmsPlugin {
|
||||
static void trustAllHttpsCertificates() throws Exception {
|
||||
TrustManager[] trustAllCerts = new TrustManager[]{
|
||||
new X509TrustManager() {
|
||||
@Override
|
||||
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
|
||||
return;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
|
||||
return;
|
||||
}
|
||||
|
||||
@Override
|
||||
public X509Certificate[] getAcceptedIssuers() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ public interface RegionService extends IService<Region> {
|
||||
* @return
|
||||
*/
|
||||
@CacheEvict(allEntries = true)
|
||||
@Override
|
||||
boolean updateById(Region region);
|
||||
/**
|
||||
* 更新地区
|
||||
@@ -35,6 +36,7 @@ public interface RegionService extends IService<Region> {
|
||||
* @return
|
||||
*/
|
||||
@CacheEvict(allEntries = true)
|
||||
@Override
|
||||
boolean save(Region region);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user