seven 1 week ago
parent
commit
6112c43dbe
1 changed files with 6 additions and 5 deletions
  1. 6 5
      app/Services/KeyboardService.php

+ 6 - 5
app/Services/KeyboardService.php

@@ -167,12 +167,13 @@ class KeyboardService extends BaseService
             }
             
             // var_dump($buttons);
-            foreach($buttons as $row){
-                var_dump($row);
-                if(isset($row['text']) && $row['text'] == $keyword){
+            foreach($buttons as $k => $v){
+                var_dump($k);
+                var_dump($v);
+                if(isset($v['text']) && $v['text'] == $keyword){
                     
-                    if(isset($row['url']) && !empty($row['url'])){
-                        return self::menuEvent($chatId,$row['url']);
+                    if(isset($v['url']) && !empty($v['url'])){
+                        return self::menuEvent($chatId,$v['url']);
                     }
                 }
             }