showdoc icon indicating copy to clipboard operation
showdoc copied to clipboard

使用runapi 重新登录后请求参数会默认至为string

Open hxdwd opened this issue 2 years ago • 4 comments

版本:Linux版(v3.0.6) 描述:生成的接口文档Query的参数重新登录后都会默认是string,有点头疼啊,不能退出程序不然就得重新改了 截图如下: runapi界面 image 网页界面 image

hxdwd avatar Jun 20 '23 07:06 hxdwd

严格来讲,url上的参数都是字符串,没有int的说法

star7th avatar Jun 20 '23 07:06 star7th

其实更多是因为历史兼容原因。从url转参数回来的时候,参数都是字符串,导致识别不是很好。

star7th avatar Jun 20 '23 07:06 star7th

这个事情短期内不好改,先记着吧,有时间再改。

star7th avatar Jun 20 '23 07:06 star7th

只能加数据库记录吧,url确实没有参数类型,但是文档是有限制类型的,只能说先从数据库查询记录存在,不存在默认转换

sleikang avatar Apr 11 '24 02:04 sleikang