mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
https://github.com/chatopera/cskefu/issues/704 display faqs limit to seven items
This commit is contained in:
parent
8299af8134
commit
1c1f7b36a2
@ -241,6 +241,10 @@ public class ChatbotEventSubscription {
|
|||||||
sugg.put("text", faqReply.getString("post"));
|
sugg.put("text", faqReply.getString("post"));
|
||||||
sugg.put("type", "qlist");
|
sugg.put("type", "qlist");
|
||||||
suggs.put(sugg);
|
suggs.put(sugg);
|
||||||
|
// set the maximum suggest list as only seven items
|
||||||
|
if(i == 6){
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (suggs.length() > 0) {
|
if (suggs.length() > 0) {
|
||||||
// TODO set help message on View Page
|
// TODO set help message on View Page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user