new YHeader()
trueVerify signature- Verify if the md5 encoding is correct
- Verify if the timestamp is reasonable
- Verify if the timestamp and nonce are unique
falseDo not verify signature, only valid in the development environment- Since:
-
- 1.0.0
Properties:
| Name | Type | Description |
|---|---|---|
yapi-version |
string | Version number, three numbers separated by dots. E.g. 1.0.0 |
yapi-merchant |
string | Merchant keyword. E.g. charmdeer |
yapi-timestamp |
string | Timestamp (China timezone, milliseconds). E.g. 1613465391602 |
yapi-nonce |
string | Random string. E.g. CLgL1Rm4 |
yapi-sign |
string | Signature md5(merchant+secret+timestamp+nonce). E.g. 762f1db57cf8a3fee50ec8a1c5beaa26 |
yapi-verify |
string | Whether to verify the signature. false is only valid in the development environment. |
Example
// '762f1db57cf8a3fee50ec8a1c5beaa26'
let sign = md5('charmdeer+kMC4zk7oc9HZ5Fnen6w9t2hXoOgRtC38+1613465391602+CLgL1Rm4')