zoujiajian 1 år sedan
förälder
incheckning
24bb7ce637

+ 2 - 1
netflix-service/src/main/java/com/cyksj/service/corp/impl/CorpUserFrontServiceImpl.java

@@ -27,6 +27,7 @@ import lombok.RequiredArgsConstructor;
 import org.springframework.stereotype.Service;
 
 import java.util.List;
+import java.util.Optional;
 
 /**
  * 项目名: yhlxj2
@@ -98,7 +99,7 @@ public class CorpUserFrontServiceImpl implements CorpUserFrontService {
 	@Override
 	public String generateTempCorpFollowCode(TempCorpFollowCodeReq tempCorpFollowCodeReq) throws Exception {
 		CorpFollowContact corpFollowContact = new CorpFollowContact();
-		tempCorpFollowCodeReq.setYl(true);
+		tempCorpFollowCodeReq.setYl(Optional.ofNullable(tempCorpFollowCodeReq.getYl()).orElse(true));
 		String state = Codec.DoBase64.custom().setData(Jsons.toJson(tempCorpFollowCodeReq)).encodeAsText();
 		CorpWxYlRecord corpWxYlRecord = new CorpWxYlRecord();
 		corpWxYlRecord.setState(state);