lib/imperituroard/projects/mhub/subs/dabrab/dabrab_proced.rb in imperituroard-1.1.15 vs lib/imperituroard/projects/mhub/subs/dabrab/dabrab_proced.rb in imperituroard-1.1.17
- old
+ new
@@ -7,11 +7,11 @@
def initialize(log_level)
@internal_func = InternalFunc.new
@log_level = log_level
end
- def dabrabyt_text_field_parse(stri)
+ def dabrabyt_text_field_parse(stri, viberttl)
button_url = ""
image = ""
button_text = ""
text = stri
@@ -99,16 +99,16 @@
scheme = 0
end
case scheme
when 0
- sk_format = {"text": text, "ttl": 60}
+ sk_format = {"text": text, "ttl": viberttl}
when 1
- sk_format = {"text": text, "ttl": 60, "caption": button_text, "action": button_url}
+ sk_format = {"text": text, "ttl": viberttl, "caption": button_text, "action": button_url}
when 2
- sk_format = {"text": text, "ttl": 60, "caption": button_text, "action": button_url, "img": image}
+ sk_format = {"text": text, "ttl": viberttl, "caption": button_text, "action": button_url, "img": image}
when 3
- sk_format = {"img": image, "ttl": 60}
+ sk_format = {"img": image, "ttl": viberttl}
else
nil
end
#p sk_format