나는 나의 적응에 카드를 로봇 builder 에뮬레이터로 나타납 빈

0

질문

내가 사용하는 파이썬 로봇 작성기 프레임워크 및 테스트는 그것에게 있습니다. 지금 내가 알기에는 나의 적응 카드 JSON 파일은 완벽한 때문에 그것의 모든 데이터는 원하는 모두에서른 코드고 https://adaptivecards.io/designer/. 그러나 실행할 때 에뮬레이터 내 적응 완전히 비어 있습니다.

지금은 코드를 사용한 적응 카드:

    def adaptive_flight_card_attachment(self):
        JSONFileName = 'QuickAdaptiveJSONfile.json'
        file_path = "AdaptiveFlightCardFile"
        
        if os.path.exists(file_path):
            files_in_dir = os.listdir(file_path)
            if JSONFileName in files_in_dir:
                file_path = os.getcwd()+f'/{file_path}'+f'/{JSONFileName}'
                    with open(file_path, "r+", encoding="unicode_escape") as in_file:
                        card = json.load(in_file)
                            return Attachment(content_type="application/vnd.microsoft.card.adaptive", content=card )

나는 그때 이를 사용:

FlightDetailCard = self.adaptive_flight_card_attachment()
response = MessageFactory.attachment(FlightDetailCard)
await turn_context.send_activity(response)

여기 어딘가에 나가 실수를 하고 나는 수가 없 핀 지점에. 그래서 사람이 나를 도와주십시오 여기입니까?

  • 이것은 어떻게 내 적응 카드가 나타나(두 빈 사각형의 하단에 채팅): enter image description here
  • 이것은 그들이 어떻게 해야하는 것(탑승권에서 화면의 오른쪽): enter image description here
adaptive-cards botframework bots chatbot
2021-11-23 15:32:51
1

최고의 응답

0

처럼 보이는 문제에 json 파일입니다.

enter image description here

2021-11-24 13:16:40

예 나는 인쇄 파일 내용뿐만 아니라고 확인하는 완벽합니다. 하지만 다소 이 카드가 표시되지 않습니다. 나 또한 제거*encoding="unicode_escape"*그러나 불행하게도 도움이 아직입니다.
KingKong BigBong

할 수 있는 적응 파일과 로그 정보
Vinoth Rajendran

github.com/microsoft/BotFramework-Emulator/issues/2337 여기에 게재했 json 데이터에서 마지막 comment.
KingKong BigBong

당신은 바로 변경된 버전 1.3?
Vinoth Rajendran

보다 당신은 매우 많습니다. 도에 대한 나의 어리석음(SMH)
KingKong BigBong

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................