according to the description in the 1-JS-SDK usage permission signature algorithm in Appendix JS-SDK of Wechat JS-SDK ( URL is here ), a signature needs to be calculated when using jssdk, and a timestamp needs to be provided when calculating the signature.
Thecode is Cmursharp. As far as I understand it, a timestamp is a number, but it is found that not all numbers can be used as timestamps. The conclusions of current observation are as follows:
DateTime.Now.ToFileTime ()
No
DateTime.Now.ToFileTime () / 10000
can
DateTime.Today.ToFileTime ()
can
but the document does not say what kind of numbers are not allowed. I don"t know if there are any brothers who know.