This commit is contained in:
77
2024-04-01 23:18:33 +08:00
parent 102cf30c8d
commit b199a83188
2 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ public class ChatManager {
Long userId = LoginHelper.getUserId();
User fromUser = userService.getById(userId);
User toUser = userService.getById(callReq.getToUid());
if(fromUser != null){
if(fromUser == null){
throw new ServiceException("用户不存在");
}
userForbidManager.checkForbid(userId);

View File

@@ -66,7 +66,7 @@ public class PayConfigManager {
Collection<PayConfig> values = PAY_CONFIGS_MAP.values();
Map<String,PayConfig> using = new HashMap<>();
for (PayConfig value : values) {
if(PayTypeEnum.WX.getCode().equals(value.getPayType())){
if(value.getEnableStatus().equals(1) && PayTypeEnum.WX.getCode().equals(value.getPayType())){
using.put(value.getWxMcid(),value);
}
}
@@ -90,7 +90,7 @@ public class PayConfigManager {
Collection<PayConfig> values = PAY_CONFIGS_MAP.values();
Map<String,PayConfig> using = new HashMap<>();
for (PayConfig value : values) {
if(PayTypeEnum.ALI.getCode().equals(value.getPayType())){
if(value.getEnableStatus().equals(1) && PayTypeEnum.ALI.getCode().equals(value.getPayType())){
using.put(value.getWxMcid(),value);
}
}