diff --git a/hinghwa-dict-backend/word/pronunciation/views.py b/hinghwa-dict-backend/word/pronunciation/views.py index d8a1a41..8a3f958 100644 --- a/hinghwa-dict-backend/word/pronunciation/views.py +++ b/hinghwa-dict-backend/word/pronunciation/views.py @@ -366,6 +366,7 @@ def post(self, request, id): pronunciation.save() pro = f"语音(id={id})" contributor = pronunciation.contributor + transaction = None if result: content = f"恭喜您,您的语音{pro}审核通过" transaction = manage_points_in_pronunciation(contributor.id) @@ -378,7 +379,7 @@ def post(self, request, id): action_object=pronunciation, title=f"【通知】语音({pronunciation.word.word})审核结果", ) - return JsonResponse(transaction, status=200) + return JsonResponse(transaction if transaction else {}, status=200) # PN0105 更改审核结果 def put(self, request, id): diff --git a/tests/pronunciation-PN0205-200.apifox-cli.json b/tests/pronunciation-PN0205-200.apifox-cli.json index 24af600..2886bb3 100644 --- a/tests/pronunciation-PN0205-200.apifox-cli.json +++ b/tests/pronunciation-PN0205-200.apifox-cli.json @@ -4,8 +4,8 @@ { "item": [ { - "id": "dc283bff-a7b0-4512-8049-d3166d1b5f65", - "name": "LG0101 账号密码登录(登录用户admin)", + "id": "618df087-660e-4b6a-9c5c-e6b525192083", + "name": "LG0101 账号密码登录 (登录用户admin)", "request": { "url": { "protocol": "http", @@ -29,7 +29,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" }, { "key": "Content-Type", @@ -69,7 +69,7 @@ " wrap: false", " });", "", - " ", + "", " if (false && undefined !== undefined) {", " if (Array.isArray(value)) {", " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", @@ -88,7 +88,7 @@ " break;", " }", " ", - " pm.environment.set(`token`, value);console.log('已设置环境变量【token】,值为 【' + value + '】')", + " pm.environment.set(`token`, value);console.log('___label_placeholder__processor___', '已设置环境变量【token】,值为 【' + value + '】')", " } catch(e) {", " e.message = '提取变量【token】出错: ' + e.message;", " throw e;", @@ -120,7 +120,7 @@ " wrap: false", " });", "", - " ", + "", " if (false && undefined !== undefined) {", " if (Array.isArray(value)) {", " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", @@ -139,7 +139,7 @@ " break;", " }", " ", - " pm.variables.set(`user_id_1`, value);console.log('已设置临时变量【user_id_1】,值为 【' + value + '】')", + " pm.variables.set(`user_id_1`, value);console.log('___label_placeholder__processor___', '已设置临时变量【user_id_1】,值为 【' + value + '】')", " } catch(e) {", " e.message = '提取变量【user_id_1】出错: ' + e.message;", " throw e;", @@ -152,10 +152,6 @@ ], "responseDefinition": { "id": 4183271, - "createdAt": "2021-07-29T14:43:37.000Z", - "updatedAt": "2021-08-12T16:27:18.000Z", - "deletedAt": null, - "apiDetailId": 5318056, "name": "成功", "code": 200, "contentType": "json", @@ -180,8 +176,10 @@ ] }, "defaultEnable": true, - "projectId": 0, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": {} }, "requestDefinition": { @@ -209,6 +207,10 @@ ] } }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 5318056, "httpApiCaseId": 66519209, @@ -217,17 +219,22 @@ "httpApiMethod": "post", "httpApiCaseName": "登录用户admin", "id": "618df087-660e-4b6a-9c5c-e6b525192083", - "type": "http" + "type": "http", + "name": "LG0101 账号密码登录 (登录用户admin)", + "relatedId": 1831341, + "blockId": "618df087-660e-4b6a-9c5c-e6b525192083" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "8be7dd80-1bd0-4e89-b6ec-d41bd58a6e85", - "name": "WD0102 管理员上传新词语(WD0102 管理员上传新词语)", + "id": "583e87b0-837a-4328-a1e0-eb0a91125adc", + "name": "WD0102 管理员上传新词语 (WD0102 管理员上传新词语)", "request": { "url": { "protocol": "http", @@ -251,7 +258,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" }, { "key": "Content-Type", @@ -291,7 +298,7 @@ " wrap: false", " });", "", - " ", + "", " if (false && undefined !== undefined) {", " if (Array.isArray(value)) {", " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", @@ -310,7 +317,7 @@ " break;", " }", " ", - " pm.environment.set(`word_id_1`, value);console.log('已设置环境变量【word_id_1】,值为 【' + value + '】')", + " pm.environment.set(`word_id_1`, value);console.log('___label_placeholder__processor___', '已设置环境变量【word_id_1】,值为 【' + value + '】')", " } catch(e) {", " e.message = '提取变量【word_id_1】出错: ' + e.message;", " throw e;", @@ -323,10 +330,6 @@ ], "responseDefinition": { "id": 4275786, - "createdAt": "2021-07-31T14:43:25.000Z", - "updatedAt": "2021-08-02T15:13:44.000Z", - "deletedAt": null, - "apiDetailId": 5349877, "name": "成功", "code": 200, "contentType": "json", @@ -342,8 +345,10 @@ ] }, "defaultEnable": true, - "projectId": 0, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": {} }, "requestDefinition": { @@ -360,6 +365,10 @@ "description": "related为id列表" } }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 5349877, "httpApiCaseId": 66565257, @@ -368,17 +377,22 @@ "httpApiMethod": "post", "httpApiCaseName": "WD0102 管理员上传新词语", "id": "583e87b0-837a-4328-a1e0-eb0a91125adc", - "type": "http" + "type": "http", + "name": "WD0102 管理员上传新词语 (WD0102 管理员上传新词语)", + "relatedId": 1831341, + "blockId": "583e87b0-837a-4328-a1e0-eb0a91125adc" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "dadeb29f-3827-4f19-9135-ed68fc750110", - "name": "WD0102 管理员上传新词语(WD0102 管理员上传新词语)", + "id": "46f4348d-aa77-456e-9c53-9862a3005895", + "name": "WD0102 管理员上传新词语 (WD0102 管理员上传新词语)", "request": { "url": { "protocol": "http", @@ -402,7 +416,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" }, { "key": "Content-Type", @@ -442,7 +456,7 @@ " wrap: false", " });", "", - " ", + "", " if (false && undefined !== undefined) {", " if (Array.isArray(value)) {", " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", @@ -461,7 +475,7 @@ " break;", " }", " ", - " pm.environment.set(`word_id_2`, value);console.log('已设置环境变量【word_id_2】,值为 【' + value + '】')", + " pm.environment.set(`word_id_2`, value);console.log('___label_placeholder__processor___', '已设置环境变量【word_id_2】,值为 【' + value + '】')", " } catch(e) {", " e.message = '提取变量【word_id_2】出错: ' + e.message;", " throw e;", @@ -474,10 +488,6 @@ ], "responseDefinition": { "id": 4275786, - "createdAt": "2021-07-31T14:43:25.000Z", - "updatedAt": "2021-08-02T15:13:44.000Z", - "deletedAt": null, - "apiDetailId": 5349877, "name": "成功", "code": 200, "contentType": "json", @@ -493,8 +503,10 @@ ] }, "defaultEnable": true, - "projectId": 0, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": {} }, "requestDefinition": { @@ -511,6 +523,10 @@ "description": "related为id列表" } }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 5349877, "httpApiCaseId": 66566332, @@ -519,17 +535,22 @@ "httpApiMethod": "post", "httpApiCaseName": "WD0102 管理员上传新词语", "id": "46f4348d-aa77-456e-9c53-9862a3005895", - "type": "http" + "type": "http", + "name": "WD0102 管理员上传新词语 (WD0102 管理员上传新词语)", + "relatedId": 1831341, + "blockId": "46f4348d-aa77-456e-9c53-9862a3005895" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "ff95e189-2997-4583-a81a-0aeff98db89f", - "name": "WD0102 管理员上传新词语(WD0102 管理员上传新词语)", + "id": "0b02a185-767a-450c-a9cd-f0a9628f7acd", + "name": "WD0102 管理员上传新词语 (WD0102 管理员上传新词语)", "request": { "url": { "protocol": "http", @@ -553,7 +574,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" }, { "key": "Content-Type", @@ -593,7 +614,7 @@ " wrap: false", " });", "", - " ", + "", " if (false && undefined !== undefined) {", " if (Array.isArray(value)) {", " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", @@ -612,7 +633,7 @@ " break;", " }", " ", - " pm.environment.set(`word_id_3`, value);console.log('已设置环境变量【word_id_3】,值为 【' + value + '】')", + " pm.environment.set(`word_id_3`, value);console.log('___label_placeholder__processor___', '已设置环境变量【word_id_3】,值为 【' + value + '】')", " } catch(e) {", " e.message = '提取变量【word_id_3】出错: ' + e.message;", " throw e;", @@ -625,10 +646,6 @@ ], "responseDefinition": { "id": 4275786, - "createdAt": "2021-07-31T14:43:25.000Z", - "updatedAt": "2021-08-02T15:13:44.000Z", - "deletedAt": null, - "apiDetailId": 5349877, "name": "成功", "code": 200, "contentType": "json", @@ -644,8 +661,10 @@ ] }, "defaultEnable": true, - "projectId": 0, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": {} }, "requestDefinition": { @@ -662,6 +681,10 @@ "description": "related为id列表" } }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 5349877, "httpApiCaseId": 66624479, @@ -670,17 +693,22 @@ "httpApiMethod": "post", "httpApiCaseName": "WD0102 管理员上传新词语", "id": "0b02a185-767a-450c-a9cd-f0a9628f7acd", - "type": "http" + "type": "http", + "name": "WD0102 管理员上传新词语 (WD0102 管理员上传新词语)", + "relatedId": 1831341, + "blockId": "0b02a185-767a-450c-a9cd-f0a9628f7acd" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "a90c3c82-442e-453a-b487-8c31807b9dc8", - "name": "PN0102 增加一条语音(PN0102 增加一条语音)", + "id": "2c04eb6f-6f61-4b4b-8876-371cd7d74350", + "name": "PN0102 增加一条语音 (PN0102 增加一条语音)", "request": { "url": { "protocol": "http", @@ -704,7 +732,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" }, { "key": "Content-Type", @@ -744,7 +772,7 @@ " wrap: false", " });", "", - " ", + "", " if (false && undefined !== undefined) {", " if (Array.isArray(value)) {", " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", @@ -763,7 +791,7 @@ " break;", " }", " ", - " pm.environment.set(`pro_id`, value);console.log('已设置环境变量【pro_id】,值为 【' + value + '】')", + " pm.environment.set(`pro_id`, value);console.log('___label_placeholder__processor___', '已设置环境变量【pro_id】,值为 【' + value + '】')", " } catch(e) {", " e.message = '提取变量【pro_id】出错: ' + e.message;", " throw e;", @@ -776,10 +804,6 @@ ], "responseDefinition": { "id": 4281313, - "createdAt": "2021-08-01T14:30:48.000Z", - "updatedAt": "2021-08-04T15:16:39.000Z", - "deletedAt": null, - "apiDetailId": 5352384, "name": "成功", "code": 200, "contentType": "json", @@ -796,8 +820,10 @@ ] }, "defaultEnable": true, - "projectId": 0, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": {} }, "requestDefinition": { @@ -813,6 +839,10 @@ ] } }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 5352384, "httpApiCaseId": 66519248, @@ -821,17 +851,22 @@ "httpApiMethod": "post", "httpApiCaseName": "PN0102 增加一条语音", "id": "2c04eb6f-6f61-4b4b-8876-371cd7d74350", - "type": "http" + "type": "http", + "name": "PN0102 增加一条语音 (PN0102 增加一条语音)", + "relatedId": 1831341, + "blockId": "2c04eb6f-6f61-4b4b-8876-371cd7d74350" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "7d4b96b6-f4c4-4179-a754-0f3e9aeaa7fd", - "name": "PN0205 语音上传榜单(PN0205 语音上传榜单)", + "id": "7a9427e1-5c09-460c-b2da-04a4b9c34a3f", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", "request": { "url": { "protocol": "http", @@ -872,7 +907,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" } ], "method": "GET", @@ -884,10 +919,6 @@ "event": [], "responseDefinition": { "id": 145978331, - "createdAt": "2023-01-06T13:56:14.000Z", - "updatedAt": "2023-01-16T12:56:03.000Z", - "deletedAt": null, - "apiDetailId": 57535259, "name": "成功", "code": 200, "contentType": "json", @@ -953,8 +984,10 @@ ] }, "defaultEnable": true, - "projectId": 404238, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": { "1077996": { "type": "object", @@ -991,6 +1024,10 @@ "requestDefinition": { "jsonSchema": {} }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 57535259, "httpApiCaseId": 66855540, @@ -999,17 +1036,22 @@ "httpApiMethod": "get", "httpApiCaseName": "PN0205 语音上传榜单", "id": "7a9427e1-5c09-460c-b2da-04a4b9c34a3f", - "type": "http" + "type": "http", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", + "relatedId": 1831341, + "blockId": "7a9427e1-5c09-460c-b2da-04a4b9c34a3f" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "bafcc936-6fa9-4362-9b90-751b5f99437b", - "name": "PN0106 审核语音(PN0106 审核语音)", + "id": "a5b36d24-1e49-4985-a015-d1c27b1458d4", + "name": "PN0106 审核语音 (PN0106 审核语音)", "request": { "url": { "protocol": "http", @@ -1026,7 +1068,14 @@ "1" ], "query": [], - "variable": [] + "variable": [ + { + "disabled": false, + "type": "string", + "value": "{{pro_id}}", + "key": "id" + } + ] }, "header": [ { @@ -1035,7 +1084,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" }, { "key": "Content-Type", @@ -1055,10 +1104,6 @@ "event": [], "responseDefinition": { "id": 31059216, - "createdAt": "2022-03-31T13:32:41.000Z", - "updatedAt": "2022-03-31T13:39:42.000Z", - "deletedAt": null, - "apiDetailId": 15672863, "name": "成功", "code": 200, "contentType": "json", @@ -1067,8 +1112,10 @@ "properties": {} }, "defaultEnable": true, - "projectId": 0, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": {} }, "requestDefinition": { @@ -1089,6 +1136,10 @@ ] } }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 15672863, "httpApiCaseId": 66855538, @@ -1097,17 +1148,22 @@ "httpApiMethod": "post", "httpApiCaseName": "PN0106 审核语音", "id": "a5b36d24-1e49-4985-a015-d1c27b1458d4", - "type": "http" + "type": "http", + "name": "PN0106 审核语音 (PN0106 审核语音)", + "relatedId": 1831341, + "blockId": "a5b36d24-1e49-4985-a015-d1c27b1458d4" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "59ba16d1-1626-4043-b399-f8f1cb65ad54", - "name": "PN0205 语音上传榜单(PN0205 语音上传榜单)", + "id": "5c2c602c-a6a6-4446-a7e5-6ba9f7120ddf", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", "request": { "url": { "protocol": "http", @@ -1148,7 +1204,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" } ], "method": "GET", @@ -1160,10 +1216,6 @@ "event": [], "responseDefinition": { "id": 145978331, - "createdAt": "2023-01-06T13:56:14.000Z", - "updatedAt": "2023-01-16T12:56:03.000Z", - "deletedAt": null, - "apiDetailId": 57535259, "name": "成功", "code": 200, "contentType": "json", @@ -1229,8 +1281,10 @@ ] }, "defaultEnable": true, - "projectId": 404238, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": { "1077996": { "type": "object", @@ -1267,6 +1321,10 @@ "requestDefinition": { "jsonSchema": {} }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 57535259, "httpApiCaseId": 66566432, @@ -1275,17 +1333,22 @@ "httpApiMethod": "get", "httpApiCaseName": "PN0205 语音上传榜单", "id": "5c2c602c-a6a6-4446-a7e5-6ba9f7120ddf", - "type": "http" + "type": "http", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", + "relatedId": 1831341, + "blockId": "5c2c602c-a6a6-4446-a7e5-6ba9f7120ddf" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "9d8041bd-c9f3-45b2-85c5-df28f5cda172", - "name": "LG0101 账号密码登录(登录用户user_test)", + "id": "3449ba66-8b76-43d8-a417-1bb387c315c6", + "name": "LG0101 账号密码登录 (登录用户user_test)", "request": { "url": { "protocol": "http", @@ -1309,7 +1372,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" }, { "key": "Content-Type", @@ -1349,7 +1412,7 @@ " wrap: false", " });", "", - " ", + "", " if (false && undefined !== undefined) {", " if (Array.isArray(value)) {", " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", @@ -1368,7 +1431,7 @@ " break;", " }", " ", - " pm.environment.set(`token_2`, value);console.log('已设置环境变量【token_2】,值为 【' + value + '】')", + " pm.environment.set(`token_2`, value);console.log('___label_placeholder__processor___', '已设置环境变量【token_2】,值为 【' + value + '】')", " } catch(e) {", " e.message = '提取变量【token_2】出错: ' + e.message;", " throw e;", @@ -1400,7 +1463,7 @@ " wrap: false", " });", "", - " ", + "", " if (false && undefined !== undefined) {", " if (Array.isArray(value)) {", " value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];", @@ -1419,7 +1482,7 @@ " break;", " }", " ", - " pm.environment.set(`user_id_2`, value);console.log('已设置环境变量【user_id_2】,值为 【' + value + '】')", + " pm.environment.set(`user_id_2`, value);console.log('___label_placeholder__processor___', '已设置环境变量【user_id_2】,值为 【' + value + '】')", " } catch(e) {", " e.message = '提取变量【user_id_2】出错: ' + e.message;", " throw e;", @@ -1432,10 +1495,6 @@ ], "responseDefinition": { "id": 4183271, - "createdAt": "2021-07-29T14:43:37.000Z", - "updatedAt": "2021-08-12T16:27:18.000Z", - "deletedAt": null, - "apiDetailId": 5318056, "name": "成功", "code": 200, "contentType": "json", @@ -1460,8 +1519,10 @@ ] }, "defaultEnable": true, - "projectId": 0, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": {} }, "requestDefinition": { @@ -1489,6 +1550,10 @@ ] } }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 5318056, "httpApiCaseId": 66630348, @@ -1497,17 +1562,22 @@ "httpApiMethod": "post", "httpApiCaseName": "登录用户user_test", "id": "3449ba66-8b76-43d8-a417-1bb387c315c6", - "type": "http" + "type": "http", + "name": "LG0101 账号密码登录 (登录用户user_test)", + "relatedId": 1831341, + "blockId": "3449ba66-8b76-43d8-a417-1bb387c315c6" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "7c689c54-60ef-4f4b-bc44-b8ca102a0088", - "name": "US0201 获取指定用户信息(US0201 获取指定用户信息)", + "id": "41055b2c-b2da-4a80-a5d0-530fefb27e1b", + "name": "US0201 获取指定用户信息 (US0201 获取指定用户信息)", "request": { "url": { "protocol": "http", @@ -1523,7 +1593,14 @@ "1" ], "query": [], - "variable": [] + "variable": [ + { + "disabled": false, + "type": "string", + "value": "{{user_id_2}}", + "key": "id" + } + ] }, "header": [ { @@ -1532,7 +1609,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" } ], "method": "GET", @@ -1544,10 +1621,6 @@ "event": [], "responseDefinition": { "id": 4116009, - "createdAt": "2021-07-28T16:58:17.000Z", - "updatedAt": "2023-01-18T09:37:05.000Z", - "deletedAt": null, - "apiDetailId": 5298312, "name": "成功", "code": 200, "contentType": "json", @@ -1698,8 +1771,10 @@ ] }, "defaultEnable": true, - "projectId": 0, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": { "1097305": { "type": "object", @@ -1838,6 +1913,13 @@ "title", "color" ] + }, + "level": { + "type": "integer", + "title": "等级", + "mock": { + "mock": "@integer(1,6)" + } } }, "required": [ @@ -1856,7 +1938,8 @@ "wechat", "points_sum", "points_now", - "title" + "title", + "level" ], "x-apifox-orders": [ "id", @@ -1874,7 +1957,8 @@ "title", "registration_time", "login_time", - "wechat" + "wechat", + "level" ], "title": "user_all", "name": "user_all" @@ -1887,6 +1971,10 @@ "properties": {} } }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 5298312, "httpApiCaseId": 66623436, @@ -1895,17 +1983,22 @@ "httpApiMethod": "get", "httpApiCaseName": "US0201 获取指定用户信息", "id": "41055b2c-b2da-4a80-a5d0-530fefb27e1b", - "type": "http" + "type": "http", + "name": "US0201 获取指定用户信息 (US0201 获取指定用户信息)", + "relatedId": 1831341, + "blockId": "41055b2c-b2da-4a80-a5d0-530fefb27e1b" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "735238a0-1872-4f42-83a9-2dcd5bea6d0f", - "name": "PN0102 增加一条语音(PN0102 增加一条语音)", + "id": "4d8635a6-1f3c-4dd2-87c4-fa4ed3ae534f", + "name": "PN0102 增加一条语音 (PN0102 增加一条语音)", "request": { "url": { "protocol": "http", @@ -1929,7 +2022,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" }, { "key": "Content-Type", @@ -1949,10 +2042,6 @@ "event": [], "responseDefinition": { "id": 4281313, - "createdAt": "2021-08-01T14:30:48.000Z", - "updatedAt": "2021-08-04T15:16:39.000Z", - "deletedAt": null, - "apiDetailId": 5352384, "name": "成功", "code": 200, "contentType": "json", @@ -1969,8 +2058,10 @@ ] }, "defaultEnable": true, - "projectId": 0, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": {} }, "requestDefinition": { @@ -1986,6 +2077,10 @@ ] } }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 5352384, "httpApiCaseId": 66566349, @@ -1994,17 +2089,22 @@ "httpApiMethod": "post", "httpApiCaseName": "PN0102 增加一条语音", "id": "4d8635a6-1f3c-4dd2-87c4-fa4ed3ae534f", - "type": "http" + "type": "http", + "name": "PN0102 增加一条语音 (PN0102 增加一条语音)", + "relatedId": 1831341, + "blockId": "4d8635a6-1f3c-4dd2-87c4-fa4ed3ae534f" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "a0bf8ff2-55ff-42dd-a31c-993f63795ea6", - "name": "PN0102 增加一条语音(PN0102 增加一条语音)", + "id": "bb82861b-7c29-4b37-88b4-8d3274cb7e50", + "name": "PN0102 增加一条语音 (PN0102 增加一条语音)", "request": { "url": { "protocol": "http", @@ -2028,7 +2128,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" }, { "key": "Content-Type", @@ -2048,10 +2148,6 @@ "event": [], "responseDefinition": { "id": 4281313, - "createdAt": "2021-08-01T14:30:48.000Z", - "updatedAt": "2021-08-04T15:16:39.000Z", - "deletedAt": null, - "apiDetailId": 5352384, "name": "成功", "code": 200, "contentType": "json", @@ -2068,8 +2164,10 @@ ] }, "defaultEnable": true, - "projectId": 0, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": {} }, "requestDefinition": { @@ -2085,6 +2183,10 @@ ] } }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 5352384, "httpApiCaseId": 66625058, @@ -2093,17 +2195,22 @@ "httpApiMethod": "post", "httpApiCaseName": "PN0102 增加一条语音", "id": "bb82861b-7c29-4b37-88b4-8d3274cb7e50", - "type": "http" + "type": "http", + "name": "PN0102 增加一条语音 (PN0102 增加一条语音)", + "relatedId": 1831341, + "blockId": "bb82861b-7c29-4b37-88b4-8d3274cb7e50" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "23b661ac-c4c8-4e97-84f2-50967fb75d3e", - "name": "PN0205 语音上传榜单(PN0205 语音上传榜单)", + "id": "eeab6689-21f0-4d40-b3f7-0123d19ada58", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", "request": { "url": { "protocol": "http", @@ -2144,7 +2251,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" } ], "method": "GET", @@ -2156,10 +2263,6 @@ "event": [], "responseDefinition": { "id": 145978331, - "createdAt": "2023-01-06T13:56:14.000Z", - "updatedAt": "2023-01-16T12:56:03.000Z", - "deletedAt": null, - "apiDetailId": 57535259, "name": "成功", "code": 200, "contentType": "json", @@ -2225,8 +2328,10 @@ ] }, "defaultEnable": true, - "projectId": 404238, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": { "1077996": { "type": "object", @@ -2263,6 +2368,10 @@ "requestDefinition": { "jsonSchema": {} }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 57535259, "httpApiCaseId": 66631555, @@ -2271,17 +2380,22 @@ "httpApiMethod": "get", "httpApiCaseName": "PN0205 语音上传榜单", "id": "eeab6689-21f0-4d40-b3f7-0123d19ada58", - "type": "http" + "type": "http", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", + "relatedId": 1831341, + "blockId": "eeab6689-21f0-4d40-b3f7-0123d19ada58" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "0323ba97-0e11-4a5c-a766-fa195638752d", - "name": "PN0205 语音上传榜单(PN0205 语音上传榜单)", + "id": "56e3d59d-6935-4b40-8551-b5db76f65d49", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", "request": { "url": { "protocol": "http", @@ -2322,7 +2436,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" } ], "method": "GET", @@ -2334,10 +2448,6 @@ "event": [], "responseDefinition": { "id": 145978331, - "createdAt": "2023-01-06T13:56:14.000Z", - "updatedAt": "2023-01-16T12:56:03.000Z", - "deletedAt": null, - "apiDetailId": 57535259, "name": "成功", "code": 200, "contentType": "json", @@ -2403,8 +2513,10 @@ ] }, "defaultEnable": true, - "projectId": 404238, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": { "1077996": { "type": "object", @@ -2441,6 +2553,10 @@ "requestDefinition": { "jsonSchema": {} }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 57535259, "httpApiCaseId": 66728024, @@ -2449,17 +2565,22 @@ "httpApiMethod": "get", "httpApiCaseName": "PN0205 语音上传榜单", "id": "56e3d59d-6935-4b40-8551-b5db76f65d49", - "type": "http" + "type": "http", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", + "relatedId": 1831341, + "blockId": "56e3d59d-6935-4b40-8551-b5db76f65d49" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "97728360-21fe-4303-88af-9b74c0609759", - "name": "PN0205 语音上传榜单(PN0205 语音上传榜单)", + "id": "4640f40b-702d-452f-b882-72fba0e7b756", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", "request": { "url": { "protocol": "http", @@ -2500,7 +2621,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" } ], "method": "GET", @@ -2512,10 +2633,6 @@ "event": [], "responseDefinition": { "id": 145978331, - "createdAt": "2023-01-06T13:56:14.000Z", - "updatedAt": "2023-01-16T12:56:03.000Z", - "deletedAt": null, - "apiDetailId": 57535259, "name": "成功", "code": 200, "contentType": "json", @@ -2581,8 +2698,10 @@ ] }, "defaultEnable": true, - "projectId": 404238, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": { "1077996": { "type": "object", @@ -2619,6 +2738,10 @@ "requestDefinition": { "jsonSchema": {} }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 57535259, "httpApiCaseId": 66728117, @@ -2627,17 +2750,22 @@ "httpApiMethod": "get", "httpApiCaseName": "PN0205 语音上传榜单", "id": "4640f40b-702d-452f-b882-72fba0e7b756", - "type": "http" + "type": "http", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", + "relatedId": 1831341, + "blockId": "4640f40b-702d-452f-b882-72fba0e7b756" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "64f6fc8d-a550-49c8-8b76-2a223e86360a", - "name": "PN0205 语音上传榜单(PN0205 语音上传榜单)", + "id": "322e7e7c-d768-403e-afe4-fd71c2cdd4cd", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", "request": { "url": { "protocol": "http", @@ -2678,7 +2806,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" } ], "method": "GET", @@ -2690,10 +2818,6 @@ "event": [], "responseDefinition": { "id": 145978331, - "createdAt": "2023-01-06T13:56:14.000Z", - "updatedAt": "2023-01-16T12:56:03.000Z", - "deletedAt": null, - "apiDetailId": 57535259, "name": "成功", "code": 200, "contentType": "json", @@ -2759,8 +2883,10 @@ ] }, "defaultEnable": true, - "projectId": 404238, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": { "1077996": { "type": "object", @@ -2797,6 +2923,10 @@ "requestDefinition": { "jsonSchema": {} }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 57535259, "httpApiCaseId": 66733795, @@ -2805,17 +2935,22 @@ "httpApiMethod": "get", "httpApiCaseName": "PN0205 语音上传榜单", "id": "322e7e7c-d768-403e-afe4-fd71c2cdd4cd", - "type": "http" + "type": "http", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", + "relatedId": 1831341, + "blockId": "322e7e7c-d768-403e-afe4-fd71c2cdd4cd" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } }, { - "id": "a0c0d837-e2be-4bc3-adb0-26cbe3373fec", - "name": "PN0205 语音上传榜单(PN0205 语音上传榜单)", + "id": "218f554b-e760-45f0-84a6-52ba3dfde487", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", "request": { "url": { "protocol": "http", @@ -2856,7 +2991,7 @@ }, { "key": "User-Agent", - "value": "Apifox/1.0.0 (https://www.apifox.cn)" + "value": "Apifox/1.0.0 (https://apifox.com)" } ], "method": "GET", @@ -2868,10 +3003,6 @@ "event": [], "responseDefinition": { "id": 145978331, - "createdAt": "2023-01-06T13:56:14.000Z", - "updatedAt": "2023-01-16T12:56:03.000Z", - "deletedAt": null, - "apiDetailId": 57535259, "name": "成功", "code": 200, "contentType": "json", @@ -2937,8 +3068,10 @@ ] }, "defaultEnable": true, - "projectId": 404238, "ordering": 1, + "description": "", + "mediaType": "", + "headers": [], "schemaDefinitions": { "1077996": { "type": "object", @@ -2975,6 +3108,10 @@ "requestDefinition": { "jsonSchema": {} }, + "overrideRequesterOptions": { + "strictSSL": false, + "followRedirects": false + }, "metaInfo": { "httpApiId": 57535259, "httpApiCaseId": 66734321, @@ -2983,12 +3120,17 @@ "httpApiMethod": "get", "httpApiCaseName": "PN0205 语音上传榜单", "id": "218f554b-e760-45f0-84a6-52ba3dfde487", - "type": "http" + "type": "http", + "name": "PN0205 语音上传榜单 (PN0205 语音上传榜单)", + "relatedId": 1831341, + "blockId": "218f554b-e760-45f0-84a6-52ba3dfde487" }, "type": "http", "protocolProfileBehavior": { "useWhatWGUrlParser": false, - "disableUrlEncoding": false + "disableUrlEncoding": false, + "disabledSystemHeaders": {}, + "disableCookies": false } } ], @@ -3092,11 +3234,34 @@ }, "standard_pinyin": { "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "标签", + "mock": { + "mock": "@cword" + } } }, "required": [ "standard_ipa", - "standard_pinyin" + "standard_pinyin", + "tags" + ], + "x-apifox-orders": [ + "word", + "definition", + "annotation", + "mandarin", + "related_words", + "related_articles", + "visibility", + "standard_ipa", + "standard_pinyin", + "tags" ], "title": "[入] word_update", "name": "[入] word_update" @@ -3294,6 +3459,13 @@ "title", "color" ] + }, + "level": { + "type": "integer", + "title": "等级", + "mock": { + "mock": "@integer(1,6)" + } } }, "required": [ @@ -3312,7 +3484,8 @@ "wechat", "points_sum", "points_now", - "title" + "title", + "level" ], "x-apifox-orders": [ "id", @@ -3330,7 +3503,8 @@ "title", "registration_time", "login_time", - "wechat" + "wechat", + "level" ], "title": "user_all", "name": "user_all" @@ -3348,132 +3522,134 @@ "default": "http://127.0.0.1:8000" }, "variable": { - "id": "a381a4b2-997b-4011-a720-15aeb0918c70", + "id": "3717b9bc-e4de-4e57-a1aa-4301b8f5e6ee", "name": "测试环境", - "baseUrl": "http://127.0.0.1:8000", - "baseUrls": { - "default": "http://127.0.0.1:8000" - }, "values": [ { "type": "any", - "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWQiOjEsImV4cCI6MTY5MTY2MzQ0Ny45MTgxMjR9.blDREsAN85taICmCPnqRuklUDBWLIsG5czFe9m3c5E8", + "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWQiOjIsImV4cCI6MTcyNzA3MDY0NS42MTI4NTF9.eUXBDPWJzvmFratXS-K3FFQf2oPerC2RV21_8qyCtvs", "key": "token", + "isBindInitial": false, "initialValue": "" }, { "type": "any", - "value": "87", + "value": "", "key": "quiz_id", + "isBindInitial": true, "initialValue": "" }, { "type": "any", "value": "", "key": "word_id_2", + "isBindInitial": true, "initialValue": "" }, { "type": "any", "value": "", "key": "word_id_1", + "isBindInitial": true, "initialValue": "" }, { "type": "any", "value": "", "key": "token_2", + "isBindInitial": true, "initialValue": "" }, { "type": "any", "value": "", "key": "word_id_3", + "isBindInitial": true, "initialValue": "" }, { "type": "any", - "value": "2", + "value": "", "key": "user_id", + "isBindInitial": true, "initialValue": "" }, { "type": "any", - "value": "3", + "value": "", "key": "article_id", + "isBindInitial": true, "initialValue": "" }, { "type": "any", "value": "", "key": "comment_id_1", + "isBindInitial": true, "initialValue": "" }, { "type": "any", "value": "", "key": "comment_id_2", + "isBindInitial": true, "initialValue": "" }, { "type": "any", "value": "", "key": "like_num_2", + "isBindInitial": true, "initialValue": "" }, { "type": "any", - "value": 6, + "value": "", "key": "num_pre", + "isBindInitial": true, "initialValue": "" }, { "type": "any", - "value": "7", + "value": "", "key": "num_later", + "isBindInitial": true, "initialValue": "" }, { "type": "any", - "value": "2", - "key": "id", - "initialValue": "2" - }, - { - "type": "any", - "value": "13", - "key": "music_id", - "initialValue": "13" - }, - { - "type": "any", - "value": "undefined", - "key": "rewards_id", - "initialValue": "undefined" + "value": "", + "key": "like_num_1", + "isBindInitial": true, + "initialValue": "" }, { "type": "any", - "value": "undefined", - "key": "title_id", - "initialValue": "undefined" + "value": "", + "key": "paper_id", + "isBindInitial": true, + "initialValue": "" }, { "type": "any", - "value": "SP000011", - "key": "products_id", - "initialValue": "SP000011" + "value": "", + "key": "paper_record_id", + "isBindInitial": true, + "initialValue": "" }, { "type": "any", - "value": "undefined", - "key": "order_id", - "initialValue": "undefined" + "value": "", + "key": "quiz_record_id", + "isBindInitial": true, + "initialValue": "" }, { "type": "any", - "value": "JL000039", - "key": "transaction_id", - "initialValue": "JL000039" + "value": "9", + "key": "word_id", + "isBindInitial": false, + "initialValue": "" } ] }, @@ -3489,9 +3665,7 @@ "baseUrl": "", "baseUrls": {}, "variable": { - "id": "14a8863c-bb67-42f5-999e-ca2ff8f7ae83", - "baseUrl": "", - "baseUrls": {}, + "id": "60c1ca27-fff9-453f-842f-bc13289f9097", "values": [] }, "parameter": { @@ -3502,5 +3676,13 @@ } }, "isServerBuild": false, - "isTestFlowControl": false + "isTestFlowControl": false, + "projectOptions": { + "enableJsonc": false, + "enableBigint": false, + "responseValidate": true, + "isDefaultUrlEncoding": 2, + "enableTestScenarioSetting": false, + "enableYAPICompatScript": false + } }