We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c0cb5e commit f2086ecCopy full SHA for f2086ec
2 files changed
apijson/CodeUtil.js
@@ -252,7 +252,7 @@ var CodeUtil = {
252
delete value['@role'];
253
}
254
255
- s += CodeUtil.parseJava(key, value, depth + 1, isTable);
+ s += CodeUtil.parseJava(key, value, depth + 1, isSmart);
256
257
const name = CodeUtil.getTableKey(JSONResponse.getVariableName(key));
258
if (isTable) {
js/main.js
@@ -1194,7 +1194,16 @@
1194
App.showDoc()
1195
1196
try {
1197
- vComment.value = isSingle ? '' : CodeUtil.parseComment(after, docObj == null ? null : docObj['[]'], App.getMethod())
+ var m = App.getMethod();
1198
+ var c = isSingle ? '' : CodeUtil.parseComment(after, docObj == null ? null : docObj['[]'], m)
1199
+
1200
+ if (isSingle != true) {
1201
+ m = m == null ? 'GET' : m.toUpperCase()
1202
+ if (m != 'GET' && m != 'HEAD' && c.tag == null) {
1203
+ c += ' ! 非开放请求必须设置 tag !例如 "tag": "User"'
1204
+ }
1205
1206
+ vComment.value = c
1207
1208
onScrollChanged()
1209
} catch (e) {
0 commit comments