1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 15:21:46 +09:00
This commit is contained in:
syuilo 2017-10-07 19:37:51 +09:00
parent a931bcbf8d
commit 103979dd6f

View File

@ -73,8 +73,8 @@ class LineBot extends BotCore {
}]);
}
// postback
} else if (ev.message.type == 'postback') {
const data = ev.message.postback.data;
} else if (ev.type == 'postback') {
const data = ev.postback.data;
const cmd = data.split('|')[0];
const arg = data.split('|')[1];
switch (cmd) {