|
|
@@ -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);
|