Loading…

SMS verification code

#Send SMS verification code ## Specify mobile phone number to get verification code ```javascript WXAPI.smsValidateCode(mobile, key, picCode) ``` + mobile mobile phone number + key graphical verification code interface, the key used to generate the verification code must be consistent here, otherwise a graphical verification code error will be prompted + The content of the graphic verification code displayed by the picCode graphic verification code interface ```json { "code": 0, "msg": "success" } ``` ## Use the current user’s mobile phone number to receive the verification code ```javascript WXAPI.smsValidateCodeByToken(token) ``` + token user login credentials ```json { "code": 0, "msg": "success" } ``` # Check whether the SMS verification code is correct ```javascript WXAPI.smsValidateCodeCheck(mobile, code) ``` After detection, the verification code will be invalid immediately, please use it with caution ```json { "code": 0, "msg": "success" } ```