Kaynağa Gözat
normalize action
alexa seems to sometimes send other values
pull/10/head
ebeveyn
işleme
ba55026b3d
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 276C2817346D6056
1 değiştirilmiş dosya ile
1 ekleme ve
0 silme
-
controllers/alexa.php
|
|
@ -197,6 +197,7 @@ $app->post('/alexa/endpoint', function() use($app) { |
|
|
|
} |
|
|
|
|
|
|
|
$action = $alexaRequest->slots['Action']; |
|
|
|
$action = ($action == 'drank' ? 'drank' : 'ate'); |
|
|
|
$food = ucfirst($alexaRequest->slots['Food']); |
|
|
|
|
|
|
|
|
|
|
|