Skip to content

TypeScript Backend -- 孙雷#1971

Open
fatflowers wants to merge 4 commits intohongshancapital:masterfrom
fatflowers:master
Open

TypeScript Backend -- 孙雷#1971
fatflowers wants to merge 4 commits intohongshancapital:masterfrom
fatflowers:master

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