feat: update footer to include GitHub link and adjust content type header

This commit is contained in:
zuoban
2025-06-29 15:08:11 +08:00
parent ac8dd89991
commit 4a4cc5bd46

View File

@@ -479,7 +479,16 @@ async function handleRequest(request) {
<!-- 页脚 --> <!-- 页脚 -->
<footer class="bg-gray-100 border-t border-gray-200"> <footer class="bg-gray-100 border-t border-gray-200">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"> <div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
<p class="text-gray-500 text-sm text-center">&copy; ${new Date().getFullYear()} Microsoft TTS API 服务</p> <div class="flex justify-center items-center">
<p class="text-gray-500 text-sm">&copy; ${new Date().getFullYear()} TTS
<a href="https://github.com/zuoban/tts" target="_blank" rel="noopener noreferrer"
class="inline-flex items-center text-gray-500 hover:text-gray-700 text-sm">
<svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z" clip-rule="evenodd"></path>
</svg>
</a>
</p>
</div>
</div> </div>
</footer> </footer>
@@ -983,7 +992,7 @@ async function getEndpoint() {
'X-MT-Signature': await sign(endpointUrl), 'X-MT-Signature': await sign(endpointUrl),
'User-Agent': 'okhttp/4.5.0', 'User-Agent': 'okhttp/4.5.0',
'Content-Type': 'application/json; charset=utf-8', 'Content-Type': 'application/json',
'Content-Length': '0', 'Content-Length': '0',
'Accept-Encoding': 'gzip' 'Accept-Encoding': 'gzip'
}; };