Skip to content

Commit 7eec068

Browse files
committed
👽 requestSmsCode API changed, fix
1 parent 0ac1cd2 commit 7eec068

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

leancloud/cloud.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ def request_sms_code(phone_number, idd='+86', sms_type='sms',
8686
raise TypeError('phone_number must be a string')
8787

8888
data = {
89-
'mobilePhoneNumber': phone_number,
89+
'mobilePhoneNumber': idd + phone_number,
9090
'smsType': sms_type,
91-
'IDD': idd,
9291
}
9392

9493
if template is not None:

0 commit comments

Comments
 (0)