376 lines
12 KiB
Markdown
376 lines
12 KiB
Markdown
# 问题记录
|
||
|
||
set_req_header 查询没有响应 option(已增加)
|
||
|
||
关于 option 字段,应理解为字段,不应进行配置管理
|
||
|
||
# 沟通记录
|
||
|
||
1、调用接口异常传给配管的是全量包含 null,修改为只下发此次任务的相关配置。
|
||
|
||
通过将参数透传,追加参数处理。
|
||
|
||

|
||
|
||
2、调用接口失败的任务将不再被回调
|
||
|
||

|
||
|
||
3、自定义页面,中兴平面异常。
|
||
|
||
# 高级
|
||
|
||
## back_source_host(回源 host 配置)
|
||
|
||
请求参数
|
||
|
||
```json
|
||
"domain": "douyinvodtest.jingpintest.xyz",
|
||
// 回源host配置
|
||
"back_source_host": {
|
||
"enable": true,
|
||
"host": "douyinvodtest.back.com"
|
||
}
|
||
```
|
||
|
||

|
||
|
||
数据库结果
|
||
|
||

|
||
|
||
查询接口结果
|
||
|
||

|
||
|
||
关闭
|
||
|
||
## block_loop(分片回源信息)
|
||
|
||
下发参数
|
||
|
||
{"block_loop":true,"domain":"douyinvodtest.jingpintest.xyz","plain":[0,1,2,4],"task_id":"5141cb96546d4034a07565b170e86e50"}
|
||
|
||

|
||
|
||

|
||
|
||
回调后数据库结果
|
||
|
||

|
||
|
||

|
||
|
||

|
||
|
||
## 有歧义 -set_req_header(自定义回源 HTTP 请求头)
|
||
|
||
下发报文
|
||
|
||

|
||
|
||
数据库体现
|
||
|
||

|
||
|
||
查询状况(需要补充 option)
|
||
|
||

|
||
|
||
option 为 1
|
||
|
||

|
||
|
||
查询
|
||
|
||

|
||
|
||
## backsource_redirection_status(回源重定向跟随)
|
||
|
||
下发参数
|
||
|
||

|
||
|
||
查询接口
|
||
|
||

|
||
|
||

|
||
|
||
## cache(缓存类型与过期时间信息)
|
||
|
||
下发报文
|
||
|
||

|
||
|
||
查询结果
|
||
|
||

|
||
|
||

|
||
|
||
修改场景
|
||
|
||

|
||
|
||

|
||
|
||
数据库
|
||
|
||

|
||
|
||
特殊场景
|
||
|
||

|
||
|
||
配管侧查询 cache 直接消失(正常)
|
||
|
||
ibs 库正常
|
||
|
||

|
||
|
||
# 基础
|
||
|
||
# 删除
|
||
|
||
# 查询
|
||
|
||
# 联调记录转存 excle
|
||
|
||
1、url_parameter 子开关是否删除配置问题
|
||
|
||
2、ip_black_list 涉及 ibs 查询接口 ipList 不回显问题
|
||
|
||
3、referrer_anti_stealing_link 配管字段调整周一再测
|
||
|
||
4、custom_error_page 中兴失败
|
||
|
||

|
||
|
||

|
||
|
||

|
||
|
||

|
||
|
||

|
||
|
||

|
||
|
||

|
||
|
||
均开启
|
||
|
||

|
||
|
||
查询
|
||
|
||
```json
|
||
{
|
||
"back_rewrite_uri": {
|
||
"detail": [
|
||
{
|
||
"rewrite_path": "/aa",
|
||
"target_path": "/aa/$1/$2.jpg"
|
||
},
|
||
{
|
||
"rewrite_path": "bb",
|
||
"target_path": "/bb/$1/$2.jpg"
|
||
}
|
||
],
|
||
"enable": true
|
||
},
|
||
"back_source_host": {
|
||
"enable": true,
|
||
"host": "douyinvodtest.back.com"
|
||
},
|
||
"backsource_redirection_status": false,
|
||
"base": {
|
||
"cdn_type": "web",
|
||
"cname": "douyinvodtest.jingpintest.xyz.c8c10c27.d.cdn.10086.cn",
|
||
"created_time": "2023-07-28T17:17:20+08:00",
|
||
"crt_name": "",
|
||
"customerRemarks": {
|
||
"portParam": {
|
||
"http": 80,
|
||
"https": 443
|
||
}
|
||
},
|
||
"domain": "douyinvodtest.jingpintest.xyz",
|
||
"ip_priority": "ipv6",
|
||
"ipv6_on_off": false,
|
||
"protocol": 2,
|
||
"provinces": [],
|
||
"service_provider": "0",
|
||
"sources": [
|
||
{
|
||
"back_addr": "192.23.34.88:443",
|
||
"back_protocol": 2,
|
||
"primary": true,
|
||
"type": "ip"
|
||
}
|
||
],
|
||
"state": "online",
|
||
"unique_id": "20230808171383--662a-49f8-aa8d-7c6fa093f548"
|
||
},
|
||
"block_loop": false,
|
||
"brotli_status": false,
|
||
"cache": {
|
||
"detail": [
|
||
{
|
||
"content": "",
|
||
"followsource": 1,
|
||
"ttl": 5,
|
||
"type": 2,
|
||
"unit": "day",
|
||
"weight": 3
|
||
},
|
||
{
|
||
"content": "abc/file01/2.png",
|
||
"followsource": 0,
|
||
"ttl": 2,
|
||
"type": 3,
|
||
"unit": "week",
|
||
"weight": 3
|
||
},
|
||
{
|
||
"content": "/test/index.html",
|
||
"followsource": 0,
|
||
"ttl": 0,
|
||
"type": 4,
|
||
"unit": "minute",
|
||
"weight": 4
|
||
},
|
||
{
|
||
"content": "401,404",
|
||
"followsource": 0,
|
||
"ttl": 0,
|
||
"type": 5,
|
||
"unit": "second",
|
||
"weight": 96
|
||
}
|
||
],
|
||
"enable": true
|
||
},
|
||
"custom_error_page": {
|
||
"detail": [
|
||
{
|
||
"link": "https://abc.aa/error.html",
|
||
"mode": 0,
|
||
"type": 0
|
||
},
|
||
{
|
||
"link": "https://abc.bb/error.html",
|
||
"mode": 1,
|
||
"type": 1
|
||
},
|
||
{
|
||
"link": "https://abc.cc/error.html",
|
||
"type": 2
|
||
}
|
||
],
|
||
"enable": true
|
||
},
|
||
"gzip_status": false,
|
||
"http2_status": false,
|
||
"https_status": {
|
||
"detail": {
|
||
"https_force": false,
|
||
"https_tls_version": [
|
||
"tls1.0",
|
||
"tls1.1",
|
||
"tls1.2",
|
||
"tls1.3"
|
||
]
|
||
},
|
||
"enable": true
|
||
},
|
||
"ip_black_list": {
|
||
"enable": true,
|
||
"ip_list": [
|
||
"2.1.1.1",
|
||
"2:1::1:2/24"
|
||
]
|
||
},
|
||
"referrer_anti_stealing_link": {
|
||
"detail": {
|
||
"domain_list": [
|
||
"*.10086.com",
|
||
"www.10011186.co",
|
||
"www.10011187.co"
|
||
],
|
||
"list_type": 1,
|
||
"referrer_null": false
|
||
},
|
||
"enable": true
|
||
},
|
||
"set_req_header": {
|
||
"detail": [
|
||
{
|
||
"option": 1,
|
||
"type": "Sec-Fetch-Mode",
|
||
"value": "CNTWO"
|
||
}
|
||
],
|
||
"enable": true
|
||
},
|
||
"ua_anti_stealing_link": {
|
||
"detail": {
|
||
"list_type": 2,
|
||
"ua_list": [
|
||
"Android",
|
||
"IE"
|
||
],
|
||
"ua_null": false
|
||
},
|
||
"enable": true
|
||
},
|
||
"url_anti_stealing_link": {
|
||
"detail": {
|
||
"auth_encrypt": "SHA1",
|
||
"auth_key": "abc1234",
|
||
"auth_key_back": "xyz4321",
|
||
"auth_param": "x_signature",
|
||
"auth_timeout": 8640,
|
||
"auth_type": 6
|
||
},
|
||
"enable": true
|
||
},
|
||
"url_parameter": {
|
||
"enable": false
|
||
},
|
||
"video_drag_status": false
|
||
}
|
||
```
|
||
|
||
域名删除参数下发
|
||
|
||

|
||
|
||

|
||
|
||
话单模块儿
|
||
|
||
```log
|
||
2023-08-11 10:30:49 [,,,,] [http-nio-8080-exec-2] INFO com.cmcc.cdn.platform.selfservice.service.aspire.impl.callback.DomainDeleteServiceImpl 184 onSuccessCallBack - 【删除加速域名,配管回调成功】———>开始注销话单,域名为:tianzhuo339300559.komect.com
|
||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.selfservice.service.impl.BBossAndDssInteractiveServiceImpl$1 727 run - 下发话单请求参数, url:http://10.24.88.175:8030/api/ibs/dss/statement/configure/response, param:{"productInfos":[{"billingMethod":"1","businessType":"1","cancelStatus":"2","cancelTime":"20230811183049","createTime":"20230523093330","domain":"tianzhuo339300559.komect.com","enterpriseId":"ECID1684803255","enterpriseName":"测试企业-1684803255","infoType":"1","jobId":"20230523085310","productId":"1","province":"250"}]}
|
||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.selfservice.service.impl.BBossAndDssInteractiveServiceImpl 1227 sendRequest - {"productInfos":[{"billingMethod":"1","businessType":"1","cancelStatus":"2","cancelTime":"20230811183049","createTime":"20230523093330","domain":"tianzhuo339300559.komect.com","enterpriseId":"ECID1684803255","enterpriseName":"测试企业-1684803255","infoType":"1","jobId":"20230523085310","productId":"1","province":"250"}]}
|
||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.selfservice.service.impl.BBossAndDssInteractiveServiceImpl 1230 sendRequest - 计费话单-带宽数据获取 operate,url:http://10.24.88.175:8030/api/ibs/dss/statement/configure/response
|
||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.common.util.HttpUtil 340 doHttpRequest2 - url:http://10.24.88.175:8030/api/ibs/dss/statement/configure/response, method:post, 返回的状态码为:200
|
||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.common.util.HttpUtil 344 doHttpRequest2 - url:http://10.24.88.175:8030/api/ibs/dss/statement/configure/response, method:post, 返回的请求体:{"result":null,"code":200,"message":"成功"}
|
||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.selfservice.service.impl.BBossAndDssInteractiveServiceImpl 1233 sendRequest - 计费话单-带宽数据获取 响应信息, status: 200, response:{"resp":"{\"result\":null,\"code\":200,\"message\":\"成功\"}","status":"200"}
|
||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.selfservice.service.impl.BBossAndDssInteractiveServiceImpl$1 771 run - 更新试用域名计费信息, [],[tianzhuo339300559.komect.com],[tianzhuo339300559.komect.com]
|
||
2023-08-11 10:30:49 [,,,,] [http-nio-8080-exec-2] INFO com.cmcc.cdn.platform.selfservice.dao.RedisCacheRepository 221 clearDomainsApi - clearDomainsApi
|
||
|
||
```
|
||
|
||

|
||
|
||

|
||
|
||

|
||
|
||

|
||
|
||

|