Všechno Nové

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Přihlásit se


Všechno Nové Přihlásit se

All gists matching topic api

Nedávno Vytvořeno
Nejméně nedávno Vytvořeno
Nedávno Aktualizováno
Nejméně nedávno Aktualizováno
qxzhan's Avatar

qxzhan / 腾讯EO Pages随机图API

0 Lajky
0 Forky
1 Soubory
Naposledy aktivní 2 months ago
适用于bing每日一图项目
api eo
1 // 缓存图片数据,减少重复请求
2 let cachedPictures = null;
3 let cacheTimestamp = 0;
4 const CACHE_TTL = 43200000; // 缓存12小时(12×60×60×1000毫秒)
5
6 export async function onRequest(context) {
7 const { request } = context;
8
9 try {
10 // 使用缓存数据(如果有效)
Novější Starší

Vytvořeno pomocí Opengist ⋅ Load: 3ms⋅

Čeština
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ 青序栈 ⋅ 捐赠