pull/1395/head
gedoor 3 years ago
parent 0240c792cd
commit 2876c6f3e5
  1. 2
      app/src/main/assets/defaultData/httpTTS.json

@ -28,6 +28,6 @@
"type": "text" "type": "text"
} }
], ],
"loginCheckJs": "var response = result;\nif (response.headers().get(\"Content-Type\") != \"audio/mpeg\") {\n var body = JSON.parse(response.body().string())\n if (body.status == 40000001) {\n source.login()\n java.getHeaderMap().putAll(source.getHeaderMap(true))\n response = java.getResponse()\n }\n}\nresponse" "loginCheckJs": "var response = result;\nif (response.headers().get(\"Content-Type\") != \"audio/mpeg\") {\n var body = JSON.parse(response.body().string())\n if (body.status == 40000001) {\n source.login()\n java.getHeaderMap().putAll(source.getHeaderMap(true))\n response = java.getResponse()\n } else {\n throw body.message\n }\n}\nresponse"
} }
] ]
Loading…
Cancel
Save