摘要: https://joshdimella.com/blog/adding-api-key-auth-to-fast-api Step 1: Define a List of Valid API Keys API_KEYS = [ "9d207bf0-10f5-4d8f-a479-22ff5aeff8d 阅读全文
posted @ 2023-09-15 16:29 bitterteaer 阅读(98) 评论(0) 推荐(0) 编辑
摘要: export default { counts_zh_str (str) { str = str.replace(/[^\x00-\xff]/g, "00") return str.length } } 阅读全文
posted @ 2023-09-15 14:15 bitterteaer 阅读(17) 评论(0) 推荐(0) 编辑
摘要: export default { async sleep(time){ return new Promise((resolve) => setTimeout(resolve, time)); } } 阅读全文
posted @ 2023-09-15 14:13 bitterteaer 阅读(90) 评论(0) 推荐(0) 编辑