wangyunpeng 2 ماه پیش
والد
کامیت
cc1fb0be81

+ 2 - 2
api-module/src/main/java/com/tzld/piaoquan/api/service/contentplatform/impl/ContentPlatformAccountServiceImpl.java

@@ -181,8 +181,8 @@ public class ContentPlatformAccountServiceImpl implements ContentPlatformAccount
         if (CollectionUtils.isNotEmpty(channelExistsList)) {
             throw new CommonException(ExceptionEnum.CHANNEL_EXISTS_WRONG);
         }
-        if (Objects.isNull(param.getChannel())) {
-            throw new CommonException(ExceptionEnum.CHANNEL_EXISTS_WRONG);
+        if (!StringUtils.hasText(param.getChannel())) {
+            throw new CommonException(ExceptionEnum.CHANNEL_NULL_WRONG);
         }
         Long now = System.currentTimeMillis();
         ContentPlatformAccount account = new ContentPlatformAccount();