This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
RN >= 0.63 - watchman watch-del-all && rm -rf node_modules && npm install && rm -rf /tmp/metro-* && npm run start --reset-cache | |
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache | |
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
временная ссылка на новый метод | |
/1.0.0/get-process-result-v2 | |
ответ в случае ошибки - как обычно, стандартный, с параметром hasError | |
Ответ успешный: | |
{ | |
"payStatus": "MANUAL_ISSUE", | |
"order_id": "NjRlZDJhMWEtZmFhMC00ODAwLTgwNzctMmE0YWU0YzNiMzBl_71CF92", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// напотом | |
sortFilterHelper: [ | |
0 => { offer_index = 0, baggage_tarrif_index = 0, price_with_baggage = 100, price = 100. duration, time = 10, ...}, // информация из нулевого тарифа | |
1 => { offer_index = 0, price = 100. duration, time = 10, ...}, // baggage_tarrif_index отсутствует т.к. багажа совсем нет | |
... | |
] | |
offers: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Еще проблема. | |
Один из вариантов поиска по ссылке | |
https: //api.ru-set.com/booking/get-runs?departure=moskva68&arrival=sanktpeterburg773&date=2019-06-29 | |
дал один такой ответ: | |
{ | |
"runId": "MzA5X09EZEZNa1kwTmpFM1FrSTBRa014UTBVd05UTXdNekF3UmpBd1FUVkRNVGQ4UVRkRFJERTBOME13TjBVM1EwUXhRa1V3TkRCQk9FTXdOak13TXpJNFJVTjhRMEU1TnpWQ1F6SkJRMFJDUTBZM1JrVXdOREJDT0RVNVF6RTBNekkzUWpOOE1qa3VNRFl1TWpBeE9TQXdPakF3T2pBd2ZEQTRPak13ZkRJeU9qQXdmREV4TlRBPQ2", | |
"price": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Коллеги, привет! | |
по доработке аэроэкспресса (в идеале): | |
1) текущее значение параметра type ("standard") нужно перенести в type_name | |
2) type должен быть "aeroexpress-1" для направления в аэропорт и "aeroexpress-11" для направления из аэропорта | |
3) Крайне желательно избавиться от параметра service_hash или перенести его в параметр id. (на своей стороне вы же сможете определять id имея хеш сервиса?) | |
4) train_number, departure_station, arrival_station, departure_date - нужно перенести в новый параметр freetext. формат данных в этом параметре - json_encode массив: | |
{"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\ |