TongchengOpenSource / smart-doc

Smart-doc is a java restful api document generation tool. Smart-doc is based on interface source code analysis to generate interface documentation, completely zero-injection.

Home Page:https://smart-doc-group.github.io/#/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] Inheriting the bug in sending requests after enabling debug mode from Solon

Hans-Wu-cn opened this issue · comments

Your Environment(您的使用环境,您期望的结果,社区已开启国际化推广,请文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

  • smart-doc version: 3.0.5
  • plugin version (e.g. smart-doc-maven-plugin or smart-doc-gradle-plugin): 3.0.5
  • build tool version(maven or gradle): maven
  • jdk version: 21

Expected Behavior(您期望的结果,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

In debug mode, carry the correct request header to request the interface

Current Behavior(当前结果,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

fail,The key corresponding to the header has an extra single quotation mark character '

Possible Solution(bug解决建议,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

Please modify the generated curl command to change single quotes to double quotes, or remove quotes
image
image

Steps to Reproduce (Bug产生步骤,请尽量提供用例代码。社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

1.solon + satoken + smart-doc
2.Click on request interceptor
3.execute SaSession session = StpUtil.getSession();

Context(Bug影响描述,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

This bug prevents the use of interface documentation for debugging, and not all cases require third-party integration platforms. Additionally, Torna currently only supports MySQL

#826 submit pull request