Skip to content

Commit 4aafe00

Browse files
committed
JS:POST_GET改为GETS,POST_HEAD改为HEADS
1 parent 44f4da6 commit 4aafe00

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

APIJSON-JavaScript/RequestUtil.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const TAG_REQUEST_UTIL = 'RequestUtil';
66
const URL_BASE = "http://139.196.140.118:8080"; // 基地址
77
const URL_GET = URL_BASE + "/get"; // 常规获取数据方式
88
const URL_HEAD = URL_BASE + "/head"; // 检查,默认是非空检查,返回数据总数
9-
const URL_POST_GET = URL_BASE + "/post_get"; // 通过POST来GET数据,不显示请求内容和返回结果,一般用于对安全要求比较高的请求
10-
const URL_POST_HEAD = URL_BASE + "/post_head"; // 通过POST来HEAD数据,不显示请求内容和返回结果,一般用于对安全要求比较高的请求
9+
const URL_GETS = URL_BASE + "/gets"; // 通过POST来GET数据,不显示请求内容和返回结果,一般用于对安全要求比较高的请求
10+
const URL_HEADS = URL_BASE + "/heads"; // 通过POST来HEAD数据,不显示请求内容和返回结果,一般用于对安全要求比较高的请求
1111
const URL_POST = URL_BASE + "/post"; // 新增(或者说插入)数据
1212
const URL_PUT = URL_BASE + "/put"; // 修改数据,只修改传入字段对应的值
1313
const URL_DELETE = URL_BASE + "/delete"; // 删除数据

APIJSON-JavaScript/access_error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
};
1515

16-
request(URL_POST_GET, json);
16+
request(URL_GETS, json);
1717
</script>
1818
</body>
1919
</html>

APIJSON-JavaScript/access_permitted.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
};
1616

17-
request(URL_POST_GET, json);
17+
request(URL_GETS, json);
1818
</script>
1919
</body>
2020
</html>

0 commit comments

Comments
 (0)