|
|
@@ -5,6 +5,7 @@ import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
|
import com.fs.common.exception.CustomException;
|
|
|
import com.fs.qw.service.ICorporateWeChatSpaceService;
|
|
|
+import com.fs.qw.vo.QwSessionConfigVo;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -50,6 +51,12 @@ public class CorporateWeChatSpaceController extends BaseController {
|
|
|
//获取企业微信专区会话配置
|
|
|
@GetMapping("/getQwSessionConfig")
|
|
|
public AjaxResult getQwSessionConfig() {
|
|
|
- return AjaxResult.success(weChatSpaceService.getQwSessionConfig());
|
|
|
+ QwSessionConfigVo qwSessionConfig = weChatSpaceService.getQwSessionConfig();
|
|
|
+ //敏感信息设置为null
|
|
|
+ qwSessionConfig.setPrivateKey(null);
|
|
|
+ qwSessionConfig.setAgentSecret(null);
|
|
|
+ qwSessionConfig.setProgramId(null);
|
|
|
+ qwSessionConfig.setAbilityIds(null);
|
|
|
+ return AjaxResult.success(qwSessionConfig);
|
|
|
}
|
|
|
}
|