Ken 1 hete
szülő
commit
2bcdd73c80
1 módosított fájl, 7 hozzáadás és 2 törlés
  1. 7 2
      app/Services/BaseService.php

+ 7 - 2
app/Services/BaseService.php

@@ -220,10 +220,15 @@ class BaseService
                 $botMsg['photo'] = $image;
                 $botMsg['caption'] = $item;
                 $botMsg['protect_content'] = true;  // 防止转发
-                $res[] = $botMsg;
+
             } else {
-                $res[] = $botMsg;
+//                $res[] = $botMsg;
+            }
+
+            if ($index == 0 && $isTop) {
+                $botMsg['is_top'] = $isTop;
             }
+            $res[] = $botMsg;
         }
         return $res;
     }