我正在制作一个聊天机器人应用程序,用于搜索航班。找到航班后,我将返回一个带有按钮的轮播,并希望用户在单击按钮后将其重定向到该网站。它起作用了,唯一的问题是单击按钮会将URL放入对话中。有什么方法可以打开URL而不进行对话吗?
我要发送到Viber REST API的JSON:
{
"type":"rich_media",
"min_api_version":6.8,
"receiver":"asmS1TwIYkPVxpod3rNCYg==",
"rich_media":{
"Type":"rich_media",
"ButtonsGroupColumns":6,
"ButtonsGroupRows":7,
"Buttons":[
{
"Columns":6,
"Rows":4,
"ActionType":"open-url",
"OpenURLType":"external",
"ActionBody":"http://localhost:60219/Booking?flightId=1&sessionid=3b0f51f5-cf88-4d1e-a64b-1222e19b4702&adults=1&children=0&infants=0",
"Text":"<b>Best Offer - 68.99 EUR</b><br />Bratislava to Nis on 18Oct at 14:10",
"Image":"http://localhost:60219/api/v1/FlightInfo/FlightDetail/Viber?flightId=1&returnFlightId=",
"TextVAlign":"bottom",
"TextHAlign":"center"
},
{
"Columns":6,
"Rows":1,
"ActionType":"open-url",
"OpenURLType":"external",
"ActionBody":"http://localhost:60219/Booking?flightId=1&sessionid=3b0f51f5-cf88-4d1e-a64b-1222e19b4702&adults=1&children=0&infants=0",
"Text":"DEMO booking",
"TextVAlign":"center",
"TextHAlign":"center"
},
{
"Columns":6,
"Rows":1,
"ActionType":"open-url",
"OpenURLType":"external",
"ActionBody":"https://www.ryanair.com/gb/en/booking/home/BTS/INI/2019-10-18//1/0/0/0",
"Text":"Book now",
"TextVAlign":"center",
"TextHAlign":"center"
},
{
"Columns":6,
"Rows":1,
"ActionType":"open-url",
"OpenURLType":"external",
"ActionBody":"http://localhost:60219/FlightDetail?flightid=1",
"Text":"Flight Details",
"TextVAlign":"center",
"TextHAlign":"center"
},
{
"Columns":6,
"Rows":4,
"ActionType":"open-url",
"OpenURLType":"external",
"ActionBody":"http://localhost:60219/PriceAlert?departureAirportId=ce43057e-afe6-4592-8759-9ea9643bb566&arrivalAirportId=3f43e185-bba3-4216-813d-473bfdbb024d",
"Text":"<b>Set the Price Alert for BTS-INI</b><br …Run Code Online (Sandbox Code Playgroud) 我正在尝试为我的asp.net核心服务构建安装程序,但是在设置.NET CLR VersionIIS应用程序池时遇到了问题。有什么办法将其设置为No Managed Code?
设置<iis:WebAppPool ManagedRuntimeVersion="No Managed Code">结果错误The worker process failed to pre-load .Net Runtime version No Managed Code.
想象一下如下表:
string
12345
1234567
13254
123
Run Code Online (Sandbox Code Playgroud)
我只想选择包含以下任何顺序的1,2,3,4,5行.而那些甚至更短的,其中的所有字母至少都来自那个"阵列".
选定的字符串可能只有任何顺序的字符1,2,3,4,5,而不是必要的字符串.
选择:
12345
123
1324
Run Code Online (Sandbox Code Playgroud)
未选中的:
123a
1123
Run Code Online (Sandbox Code Playgroud)