seven 1 tuần trước cách đây
mục cha
commit
63eccb21ab
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      app/Services/KeyboardService.php

+ 3 - 2
app/Services/KeyboardService.php

@@ -156,15 +156,16 @@ class KeyboardService extends BaseService
     public static function checkStart($chatId,$keyword = '')
     {
 
-        Log::error('开始使用菜单事件:',['chatId'=>$chatId,'keyword'=>$keyword]);
+        // Log::error('开始使用菜单事件:',['chatId'=>$chatId,'keyword'=>$keyword]);
         // 查找开始使用的菜单
         $list = self::findAll(['button' => '开始使用'])->toArray();
-        var_dump($list);
+        
         foreach($list as $item){
             $buttons = [];
             if(isset($item['buttons']) && !empty($item['buttons'])){
                 $buttons = json_decode($item['buttons'],true);
             }
+            var_dump($buttons);
             foreach($buttons as $row){
                 if(isset($row['text']) && $row['text'] == $keyword){
                     if(isset($row['url']) && !empty($row['url'])){