Loading…

Get unique serial number

# 1. You can set the reset time to return a fixed-length sequence. System parameters, you can set the number of hours after which the count will start from 0 by setting `order_sequence_hours` The returned format is: 2026011017320001 The first 10 digits are the current year, month, day, time and minute, format: `yyMMddHHmm` The next 4 bits are the counting factor, increasing from 1 ```javascript WXAPI.uniqueId(type) ``` + type The type of serial number, each type of serial number is counted separately # 2. Only return the counting factor It will always increase and will not be cleared to zero. It will return a number directly. ```javascript WXAPI.sequence(type, defValue) ``` + type The type of serial number, each type of serial number is counted separately + defValue default value, when type does not exist, the initial counting starts with the value