|
@@ -2,18 +2,52 @@
|
|
|
|
|
|
```sh
|
|
|
# 部署目录 192.168.70.130:/data1/sms_blk/
|
|
|
+# 部署端口 12120
|
|
|
# 启动命令
|
|
|
sh run.sh
|
|
|
# 停止命令
|
|
|
sh stop.sh
|
|
|
-
|
|
|
-# 12120
|
|
|
```
|
|
|
|
|
|
## 接口测试
|
|
|
|
|
|
+- 查询接口
|
|
|
+
|
|
|
+```http
|
|
|
+POST HTTP://192.168.70.130:12120/sms/blacklist/api/query/
|
|
|
+Content-Type: application/json
|
|
|
+
|
|
|
+{
|
|
|
+ "phoneNumber": "13231899751",
|
|
|
+ "fromSystem": "test"
|
|
|
+}
|
|
|
+```
|
|
|
+
|
|
|
+nginx转发
|
|
|
+
|
|
|
+```http
|
|
|
+POST HTTP://133.96.94.108:12120/sms/blacklist/api/query/
|
|
|
+Content-Type: application/json
|
|
|
+
|
|
|
+{
|
|
|
+ "phoneNumber": "13231899751",
|
|
|
+ "fromSystem": "test"
|
|
|
+}
|
|
|
+```
|
|
|
+
|
|
|
- 黑名单解除接口
|
|
|
|
|
|
+```http
|
|
|
+POST HTTP://192.168.70.130:12120/sms/blacklist/api/remove/
|
|
|
+Content-Type: application/json
|
|
|
+
|
|
|
+{
|
|
|
+ "phone": "13231899751",
|
|
|
+ "fromSystem": "test",
|
|
|
+ "operator": "test01"
|
|
|
+}
|
|
|
+```
|
|
|
+
|
|
|
- nginx转发
|
|
|
|
|
|
```http
|
|
@@ -21,7 +55,7 @@ POST HTTP://133.96.94.108:12120/sms/blacklist/api/remove/
|
|
|
Content-Type: application/json
|
|
|
|
|
|
{
|
|
|
- "phone": "18631137650",
|
|
|
+ "phone": "13231899751",
|
|
|
"fromSystem": "test",
|
|
|
"operator": "test01"
|
|
|
}
|