孙永军 1 éve
szülő
commit
0eb359146c

+ 1 - 1
src/main/java/com/smcic/api/conference/service/impl/UserThirdServiceImpl.java

@@ -97,7 +97,7 @@ public class UserThirdServiceImpl extends ServiceImpl<ConferenceUserThirdMapper,
     public void create(ConferenceUserThird userThird){
         boolean exists = lambdaQuery().eq(ConferenceUserThird::getConferenceId, userThird.getConferenceId()).eq(ConferenceUserThird::getPhone, userThird.getPhone()).exists();
         if (exists){
-            throw new APIException( "手机号已存在");
+            throw new APIException(400, "手机号已存在");
         }
         userThird.setCreateTime(LocalDateTime.now());
         save(userThird);