Skip to content

Commit

Permalink
change class
Browse files Browse the repository at this point in the history
  • Loading branch information
kol4k committed Mar 1, 2018
1 parent c36a620 commit ac4e1e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Library/YandexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public function __construct(){
* Susi Get function
* @param string $chatText
*/
public function getFunction($query)
public function getFunction($chatText)
{
$request = $this->myClient->get($this->apiURL.$query);
$request = $this->myClient->get($this->apiURL.$chatText);
$response = $request->getBody();
$data = json_decode($response, true);
return $data['text'][0];
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Services/GetMessageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(SusiController $susi, YandexController $yandex)
$this->yandex = $yandex;
}

public function replySend(Request $r, $formData)
public function replySend($formData, Request $r)
{
$replyToken = $formData['events']['0']['replyToken'];
$chatText = $formData['events']['0']['message']['text'];
Expand Down

0 comments on commit ac4e1e2

Please sign in to comment.