Loading…

Graphic verification code

# Display graphic verification code ```javascript WXAPI.graphValidateCodeUrl(key) ``` + key is the random number used to generate the graphical verification code Interface return example: ```json https://api.it120.cc/gooking/verification/pic/get?key=122324354565767 ``` The above address is an image address, so you can display it directly on the image control, for example: ```html ``` ```html ``` This will directly display the image verification code # Verify whether the verification code input is correct After verification, the verification code will become invalid immediately. Please use this method in appropriate situations. ```javascript WXAPI.graphValidateCodeCheck(key, code) ``` + key This value must match the key used to generate the graphical verification code above, otherwise a verification code error will be returned + code The content of the graphic verification code ```json { code: 0, msg: 'success' } ```