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