Please enable JavaScript.
Coggle requires JavaScript to display documents.
calc (start (//urlencode (calc%urlencode=urlencode('%encodeData'),…
calc
//todayDate
calc %todayDate=date('d.m.Y',%sys.timestamp)
calc %todayDateTime=date('d.m.Y H:i:s',%sys.timestamp)
-
-
//tomorrowTimestamp
calc %tomorrowTimestamp=%sys.timestamp+86400
-
//cutYear
calc %shortDate=mb_strcut('5',1,1)
%shortDate
calc %shortDate=mb_strcut('7',0,1)
-
-
-
//shortDate
%%currentOrderFullDate
calc %s4=mb_strcut('%currentOrderFullDate',3,2)
-
calc %s1=mb_strcut('%currentOrderFullDate',0,2)
-
//pic or no
%%pic
calc %position=mb_strpos('%pic','https://')
calc %position=mb_strpos('%pic','.png')
?position=false
не фото png
- 1 more item...
-
-
-
//devide
-
calc %price12=round(%s1_12/0.85*0.80)
-
-
-
//valid date
calc %currentYear=date('Y',%sys.timestamp)
calc %currentMonth=date('m',%sys.timestamp)
calc %currentDate=date('d',%sys.timestamp)
%normalCurrentDate
-
%date=null
%%meetingDate
calc %year=mb_strcut('%meetingDate',6,4)
-
calc %month=mb_strcut('%meetingDate',3,2)
calc %date=mb_strcut('%meetingDate',0,2)
-
-
-
-
-
-
//replace
calc %global.emptyText=str_replace('asd','','%phone')
%global.emptyText %global.emptyText %global.emptyText 123 #
-
//urlencode
%%asd
%buttonChange={"Columns":3,"Rows":1,"BgColor":"#eeeeee","ActionType":"open-url","OpenURLType":"internal","InternalBrowser":{"CustomTitle":"send-to-bot","Mode":"partial-size","ActionButton":"send-to-bot"},"ActionBody":"https://pipe.bot/","Text":"Змінити","Silent":"true"}
%buttonOk={"Columns":3,"Rows":1,"Text":"Добре","ActionType":"reply","ActionBody":"Добре","BgColor":"#eeeeee"}
%keyboard={"Type":"keyboard","Buttons":[%buttonOk,%buttonChange]}
%requestBody={"receiver":"%sys.extuid","min_api_version":"6","type":"text","text":"%textOrderDelivery","keyboard":%keyboard}
- 1 more item...
-
-
-
-
-
-
-
-
-
-
%encodeData=lang=%lang&selfOrderKey=%selfOrderKey&orderBottles=%currentOrderBottles&orderFullDate=%currentOrderFullDate&orderTime=%encTime&payment=%currentPayment&suggestedDate=%currentOrderFullDate&suggestedBottles=%currentOrderBottles&suggestedTime=%currentOrderTime&suggestedPayment=%currentPayment
-
calc %encTime=str_replace(' ','%20','%currentOrderTime')
calc %encTime=urlencode('%currentOrderTime')
calc %encTime=urlencode('%currentOrderTime')
//convert date
calc %strtotime=strtotime("%restDay1 14:00")
%strtotime
calc %date=date('d.m.Y H:i:s',%strtotime)
%date
calc %timestampDifference=%strtotime-%sys.timestamp
-
-
//remains
%%minutes
calc %a=round(%minutes/60)
-
-
-
-
?minutes<106
Оновлено ~ 1.5 год тому #
-
?minutes<136
Оновлено ~ 2.5 год тому #
-
-
-
//md5
-
-
-
calc %shopOrderNumber=hash_hmac("md5","123","%global.mdke")
-
-
-
-
//parse json
USER_REST_BOOKING={"name":"Roma Franko","uid":"40822","quantityBooking":1,"bookingData":[{"id":"486239F1548693705","bookedAt":"19.12.2018 17:22:54","location":"Slavsk","quantityRestDays":1,"price":"%price","firstPartPayment":"0","secondPartPayment":"555555","restDays":["26.12.2018"],"bookingId":["40822f1545232974"]}]}
%currentFirstOrderReference=$.bookingData[?(@.id=="%currentBookingId")].firstOrderReference %USER_REST_BOOKING
-
USER_REST_BOOKING={"name":"Marichka Pavlyshak","uid":"486239","quantityBooking":1,"bookingData":[{"id":"486239F1548693705","bookedAtTimestamp":"1548693705","bookedAt":"28.01.2019 18:41:45","location":"Maydan Spacecraft","quantityRestDays":1,"restDays":["03.02.2019"],"restDayOut":"04.02.2019","bookingId":["486239F1548693705"],"price":3600,"firstPartPrice":0,"secondPartPrice":3600,"firstInvoice":"none","firstAmount":0,"firstOrderReference":"1111","firstTransactionStatus":"none","firstTransactionAt":"none","secondInvoice":"none2","secondAmount":0,"secondOrderReference":"2222","secondTransactionStatus":"none","secondTransactionAt":"none"}]}
addBookingData={"id":"%bookingId","bookedAtTimestamp":"%bookedAtTimestamp","bookedAt":"%bookedAt","location":"%location","quantityRestDays":1,"restDays":["%restDay1"],"restDayOut":"%restDayOut","bookingId":["%bookingId"],"price":%price,"firstPartPrice":%firstPartPrice,"secondPartPrice":%secondPartPrice,"firstInvoice":"none","firstAmount":0,"firstOrderReference":"none","firstTransactionStatus":"none","firstTransactionAt":"none","secondInvoice":"none","secondAmount":0,"secondOrderReference":"none","secondTransactionStatus":"none","secondTransactionAt":"none"}
-
USER_REST_BOOKING={"name":"Marichka Pavlyshak","uid":"486239","quantityBooking":1,"bookingData":[{"id":"486239F1548693705","bookedAtTimestamp":"1548693705","bookedAt":"28.01.2019 18:41:45","location":"Maydan Spacecraft","quantityRestDays":1,"restDays":["03.02.2019"],"restDayOut":"04.02.2019","bookingId":["486239F1548693705"],"price":3600,"firstPartPrice":0,"secondPartPrice":3600,"firstInvoice":"none","firstAmount":0,"firstOrderReference":"1111","firstTransactionStatus":"none","firstTransactionAt":"none","secondInvoice":"none2","secondAmount":0,"secondOrderReference":"2222"}]}
-
-
//hour
calc %hour=date('H',%timestamp)
-
calc %strlen=mb_convert_encoding('рома',"Percent Encoding")
-