Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript Backend -- 孙雷 #1971

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

fatflowers
Copy link

No description provided.

}

// 长度不够则补'0'
if (res.length < minLength) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

res.padStart

describe('newUrl', () => {
beforeAll(testSetup)
afterAll(testTeardown)
it('should create a new URL', async () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

重复提交相同的request会怎么样?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不会限制,原因是创建者可能对相同的原始链接,希望有不同的分享渠道

但还是看具体需求,如果需要做成去重的,也是合理的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants