123
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user