Update api.websms.js

This commit is contained in:
Namhyeon Go 2022-01-05 19:59:55 +09:00 committed by GitHub
parent b25829d8f6
commit 77e4145f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ var WebSMSObject = function() {
;
return {
"id": response.id,
"phone": response.phone
"number": response.phone
};
} catch(e) {
console.error(e.message);
@ -70,9 +70,9 @@ var WebSMSObject = function() {
});
}).responseBody
;
return response.sms.reduce(function(cur, x) {
cur = x;
return cur;
return response.sms.reduce(function(a, x) {
a = x.code;
return a;
}, null);
} catch (e) {
console.error(e.message);