Results 14 comments of xyTom

抱歉,这个功能正在开发中,暂时还没有支持

最近有点忙,可能暂时没有太多时间,估计要等到12月或是1月了

Thank you for your suggestion. This feature is on the plan, but I haven't finished it yet because I've been busy these days. I hope that I am able to...

This feature has been added, but is turned off by default, as turning it on will increase kv quota consumption. If you need to use this feature, make sure to...

(1) If you mean passing variables to the destination url, I'd have to say that's a feature that could be implemented, but the current version of the code doesn't implement...

Thank you! @dras51 The code has been updated, just deploy the new version of the code to use the feature. When you generate the short link, you not need to...

最近一段时间比较忙,需求有点多等过段时间有空了,再逐步更新,也欢迎其他大佬可以参与贡献代码

感谢贡献代码,由于新增功能较多,故我觉得可以成为完全独立的一个版本,所以创建了一个新的分支用于合并。 目前Url-Shorten-Worker共有两个版本: 原版:https://github.com/xyTom/Url-Shorten-Worker/ [crazypeace](https://github.com/crazypeace) 修改版: https://github.com/xyTom/Url-Shorten-Worker/tree/crazypeace 用户可根据自身情况选择需要的版本进行部署 再次感谢[crazypeace](https://github.com/crazypeace)贡献代码,也欢迎其他的朋友提交pull request贡献代码!

> 你好! 其它的功能性的东西, 合不合并看个人对项目的定义和取舍. 但是有一个地方, 关于API的接口的定义和使用方法, 想和你探讨一下. > > 你的代码, 不管成功还是失败, 返回的status都是200, 找到key了, API返回的就是key; 没找到key, API返回的key里面实际上填写的是错误信息. ![image](https://user-images.githubusercontent.com/665889/260283947-da5e2a06-b53f-43c2-9689-dcdb1b2ef187.png) > > 我的修改: 状态码要表示这个API操作是否成功. 如果成功, 状态码是200, key里面有找到的key; 如果失败, 状态码是错误码, error里面有错误信息. ![image](https://user-images.githubusercontent.com/665889/260284012-36c7ee03-ea34-4115-93ac-d85737beb89b.png) > >...

默认情况下应该是允许跨域请求的 具体配置位置如下,on代表开启cors标头,允许来自任何域名的浏览器跨域请求: https://github.com/xyTom/Url-Shorten-Worker/blob/dc585e502b6e2409db203d06fa49412648ae530a/index.js#L4 实现跨域功能的代码如下: https://github.com/xyTom/Url-Shorten-Worker/blob/dc585e502b6e2409db203d06fa49412648ae530a/index.js#L21-L28