SHARE
TWEET

Untitled

a guest May 24th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Коллеги, привет!
  2. по доработке аэроэкспресса  (в идеале):
  3.  
  4. 1) текущее значение параметра type ("standard") нужно перенести в type_name
  5. 2) type должен быть "aeroexpress-1" для направления в аэропорт и "aeroexpress-11" для направления из аэропорта
  6. 3) Крайне желательно избавиться от параметра service_hash  или перенести его в параметр id. (на своей стороне вы же сможете определять id имея хеш сервиса?)
  7. 4) train_number, departure_station, arrival_station, departure_date - нужно перенести в новый параметр freetext.   формат данных в этом параметре - json_encode массив:
  8.  
  9. {"AEROEXPRESS_id":"11","AEROEXPRESS_description":"1 \u043f\u043e\u0435\u0437\u0434\u043a\u0430 \u0432 \u0432\u0430\u0433\u043e\u043d\u0435 \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u043e \u043b\u044e\u0431\u043e\u043c\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0443 \u0410\u044d\u0440\u043e\u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 30 \u0441\u0443\u0442\u043e\u043a \u0441 \u0434\u0430\u0442\u044b, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0432 \u0431\u0438\u043b\u0435\u0442\u0435 (\u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0435). \u0421\u043a\u0438\u0434\u043a\u0430 10% (\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0432 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c) \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u0431\u0438\u043b\u0435\u0442\u0430 \u043e\u0442 4 \u0434\u043e 90 \u0441\u0443\u0442\u043e\u043a \u0434\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c\u043e\u0439 \u0434\u0430\u0442\u044b \u043f\u043e\u0435\u0437\u0434\u043a\u0438.","AEROEXPRESS_order_type":"40","AEROEXPRESS_max_days":"180","AEROEXPRESS_last_id":"true","AEROEXPRESS_name":"\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439","AEROEXPRESS_seats_select":"false","AEROEXPRESS_label":"\u0422\u0430\u0440\u0438\u0444","AEROEXPRESS_max_tickets":"10","AEROEXPRESS_departure_date":"2019-05-24","AEROEXPRESS_departure_date_hum":"24 \u041c\u0430\u044f 2019","AEROEXPRESS_direction":"TO_AIRPORT","AEROEXPRESS_from":"\u041a\u0438\u0435\u0432\u0441\u043a\u0438\u0439 \u0432\u043e\u043a\u0437\u0430\u043b","AEROEXPRESS_to":"\u0410\u044d\u0440\u043e\u043f\u043e\u0440\u0442 \u0412\u043d\u0443\u043a\u043e\u0432\u043e","AEROEXPRESS_timetable_hum":{"night":[{"departure":"00:00","arrival":"00:35"},{"departure":"00:30","arrival":"01:05"}],"morning":[{"departure":"05:30","arrival":"06:05"},{"departure":"06:00","arrival":"06:35"},{"departure":"06:30","arrival":"07:05"},{"departure":"07:00","arrival":"07:35"},{"departure":"07:30","arrival":"08:06"},{"departure":"08:00","arrival":"08:35"},{"departure":"08:30","arrival":"09:07"},{"departure":"09:00","arrival":"09:37"},{"departure":"09:30","arrival":"10:07"},{"departure":"10:00","arrival":"10:37"},{"departure":"10:30","arrival":"11:07"},{"departure":"11:00","arrival":"11:35"},{"departure":"11:30","arrival":"12:07"}],"day":[{"departure":"12:00","arrival":"12:35"},{"departure":"12:30","arrival":"13:05"},{"departure":"13:00","arrival":"13:35"},{"departure":"13:30","arrival":"14:05"},{"departure":"14:00","arrival":"14:35"},{"departure":"14:30","arrival":"15:05"},{"departure":"15:00","arrival":"15:35"},{"departure":"15:30","arrival":"16:05"},{"departure":"16:00","arrival":"16:35"},{"departure":"16:30","arrival":"17:05"},{"departure":"17:00","arrival":"17:35"},{"departure":"17:30","arrival":"18:05"}],"evening":[{"departure":"18:00","arrival":"18:36"},{"departure":"18:30","arrival":"19:07"},{"departure":"19:00","arrival":"19:38"},{"departure":"19:30","arrival":"20:08"},{"departure":"20:00","arrival":"20:36"},{"departure":"20:30","arrival":"21:07"},{"departure":"21:00","arrival":"21:36"},{"departure":"21:30","arrival":"22:05"},{"departure":"22:00","arrival":"22:35"},{"departure":"22:30","arrival":"23:05"},{"departure":"23:00","arrival":"23:35"},{"departure":"23:30","arrival":"00:05"}]},"AEROEXPRESS_timetable_open":"05:30","AEROEXPRESS_timetable_close":"00:30"}
  10.  
  11.  
  12. Данный массив нужно по максималке заполнить по аналогии вашими данными, насколько это возможно. Если что-то где-то не получается, дайте знать, будем обсуждать.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top