Best way to generate order numbers for an online store?

前端 未结 13 2177
野的像风
野的像风 2021-01-31 00:09

Every order in my online store has a user-facing order number. I\'m wondering the best way to generate them. Criteria include:

  • Short
  • Easy to say over the
13条回答
  •  耶瑟儿~
    2021-01-31 00:32

    How about getting the current time in miliseconds and using that as your order ID?

提交回复
热议问题