Skip to content

Instantly share code, notes, and snippets.

View infraymer's full-sized avatar

Daniil infraymer

View GitHub Profile
import 'package:decimal/decimal.dart';
import 'package:flutter/material.dart';
class ProductAmount {
ProductCard product;
BasketSetParams? params;
BasketStore basketStore;
DataStore dataStore;
Decimal value = Decimal.zero;
func ExportProductsToExcel(ctx context.Context, filename string) error {
// Создаем новый файл Excel
file := excelize.NewFile()
// Создаем новый лист в файле Excel
sheet := "Products"
file.NewSheet(sheet)
// Заголовки столбцов
headers := []string{"ID", "Name", "Price"}
export default function DeliveryDates({
delivery,
onSelect,
}: {
delivery: BasketSubOrderDelivery[]
onSelect: (data: {
date: BasketSubOrderDelivery
type: BasketSubOrderDeliveryType | undefined
time: string | undefined
}) => void
Error: Request failed with status code 410,
at createError (/app/node_modules/axios/lib/core/createError.js:16:15),
at settle (/app/node_modules/axios/lib/core/settle.js:17:12),
at IncomingMessage.handleStreamEnd (/app/node_modules/axios/lib/adapters/http.js:260:11),
at IncomingMessage.emit (events.js:412:35),
at IncomingMessage.emit (domain.js:537:15),
at endReadableNT (internal/streams/readable.js:1334:12),
at processTicksAndRejections (internal/process/task_queues.js:82:21) {,
config: {,
url: 'https://chezakvest.ru/post_order_json.php',,
{
"correlationId": "e38d6e69-4f8c-4aef-8ddc-12118ae94c1f",
"orders": [
{
"id": "31ff2f30-f45e-4603-a844-1404b3f8bb46",
"organizationId": "dd4076ef-bb61-475b-a08a-e8a18ff22a2f",
"timestamp": 1637846673132,
"creationStatus": "Error",
"errorInfo": {
"code": "InternalServerError",
D/ViewRootImpl@3f14a4[MainActivity](24098): ViewPostIme pointer 0
D/ViewRootImpl@3f14a4[MainActivity](24098): ViewPostIme pointer 1
D/QPOS (24098): setAmount null 0.0, null, 2
D/QPOS (24098): Started
D/QPOS (24098): Connect
D/BluetoothUtils(24098): isSocketAllowedBySecurityPolicy start : device null
W/BluetoothAdapter(24098): getBluetoothService() called with no BluetoothManagerCallback
D/QPOS (24098): onRequestQposConnected
I/System.out(24098): EVENT - CONNECTED
I/System.out(24098): EVENT - START_INIT
D/QPOS: setAmount SALE 23.6, 643, 2
D/QPOS: requestInsertCard
D/BluetoothSocket: close() this: android.bluetooth.BluetoothSocket@febfd47, channel: 1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream@b754e3f, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream@283b30cmSocket: null, mSocketState: CLOSED
D/BluetoothUtils: isSocketAllowedBySecurityPolicy start : device null
W/BluetoothAdapter: getBluetoothService() called with no BluetoothManagerCallback
I/om.eoda.market: Background concurrent copying GC freed 7659(784KB) AllocSpace objects, 20(14MB) LOS objects, 49% free, 10MB/20MB, paused 339us total 105.528ms
D/QPOS: onRequestQposConnected
I/System.out: EVENT - CONNECTED
I/System.out: EVENT - START_INIT
D/QPOS: onQposIdResult
Launching lib/main_prod.dart on iPhone 12 Pro Max in debug mode...
Xcode build done. 6,2s
Failed to build iOS app
Error output from Xcode build:
objc[96717]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1edf75160) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x11a9b42b8). One of the two will be used. Which one is undefined.
objc[96717]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1edf751b0) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x11a9b4308). One of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
{
"correlationId": "bb626955-4a86-49c2-9ff4-853257924836",
"terminalGroups": [
{
"organizationId": "e81f56f3-3ece-455b-beaf-e24acf775f66",
"items": [
{
"id": "f534f721-ea3b-4043-9300-94cd7767cd64",
"organizationId": "e81f56f3-3ece-455b-beaf-e24acf775f66",
"name": "Курск",
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'url_launcher' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'shared_preferences' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'onesignal_flutter' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'package_info' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4