Skip to content

Commit b8e93a6

Browse files
committed
Supports template in AVOSCloud.requestSmsCode
1 parent 296afc0 commit b8e93a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/av.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8900,14 +8900,16 @@
89008900

89018901
/**
89028902
* Makes a call to request a sms code for operation verification.
8903-
* @param {Object} data The mobile phone number string or a JSON object contains mobilePhoneNumber,op,ttl,name etc.
8903+
* @param {Object} data The mobile phone number string or a JSON
8904+
* object that contains mobilePhoneNumber,template,op,ttl,name etc.
89048905
* @param {Object} options A Backbone-style options object
89058906
* @return {AV.Promise} A promise that will be resolved with the result
89068907
* of the function.
89078908
*/
89088909
requestSmsCode: function(data, options){
89098910
if(typeof data === 'string')
89108911
data = { mobilePhoneNumber: data };
8912+
89118913
if(!data.mobilePhoneNumber)
89128914
throw "Missing mobilePhoneNumber.";
89138915
var request = AV._request("requestSmsCode", null, null, 'POST',

0 commit comments

Comments
 (0)