收藏
回答

数据传输长度为 1256857 已经超过最大长度 1048576

框架类型 问题类型 操作系统 工具版本
小程序 Bug Windows v1.02.1901230

您好,我服务器返回的数据料就只有14919的长度,我调用setData的时候怎么会报这个错误?

数据传输长度为 1256857 已经超过最大长度 1048576


这里是我的数据

{

"token": "96837e0dff93ae215ff0c09621a38ece3df90e9f",

"userInfo": {

"nickName": "阿王",

"avatarUrl": "",

"language": "zh_CN",

"country": "France",

"province": "Paris",

"city": "",

"gender": ""

},

"shopId": "1",

"placeNumber": "A1",

"currOrderType": "",

"shopInfo": {

"logo": "",

"background": "",

"name": "有家餐馆",

"description": "有家餐馆在巴黎",

"notice": "15欧起免运费",

"cartNotice": "本店只接受当面付款",

"minPurchase": 15,

"shippingFee": 1,

"shopPhone": "0634698539",

"address": "8 AV HENRI BARBUSSE",

"complement": null,

"postcode": "93001",

"city": "BOBIGNY",

"tags": ["童叟无欺", "有好货"],

"shopType": "catering",

"orderTypes": [{

"type": "delivery",

"label": "送货上门",

"active": true,

"autoPrint": true

}, {

"type": "searchInShop",

"label": "上门自取",

"active": true,

"autoPrint": true

}, {

"type": "takeAway",

"label": "打包带走",

"active": true,

"autoPrint": true

}, {

"type": "eatIn",

"label": "堂食",

"active": true,

"autoPrint": true

}

],

"isOpened": true

},

"postOrderCbData": {

"reserveTimes": [1554535800051, 1554539400051, 1554543000051, 1554546600051, 1554550200051, 1554553800051, 1554557400051, 1554561000051, 1554564600051, 1554568200051],

"shippingDelay": 45,

"cartId": 253,

"total": 393.5,

"detail": [{

"count": 1,

"cuiId": 23795,

"cuiCode": "RBZ",

"cuiName": "肉包子",

"cuiPrice": 1,

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23796,

"cuiCode": "BCBZ",

"cuiName": "白菜包子",

"cuiPrice": 1,

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23797,

"cuiCode": "YT",

"cuiName": "油条(无明矾)",

"cuiPrice": 1,

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23801,

"cuiCode": "PDSR",

"cuiName": "皮蛋瘦肉粥",

"cuiPrice": 3,

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23878,

"speId": 12945,

"cuiCode": "XMZ",

"cuiName": "小米粥",

"speName": "小份",

"cuiPrice": 2,

"flavorId": 38,

"cuiThumImg": "",

"customerId": 1,

"flavorName": "微辣"

}, {

"count": 1,

"cuiId": 23878,

"speId": 12947,

"cuiCode": "XMZ",

"cuiName": "小米粥",

"speName": "大份",

"cuiPrice": 4,

"flavorId": 38,

"cuiThumImg": "",

"customerId": 1,

"flavorName": "微辣"

}, {

"count": 1,

"cuiId": 23794,

"speId": 12932,

"cuiCode": "BZDJ",

"cuiName": "杯装豆浆",

"speName": "小杯",

"cuiPrice": 0.5,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23794,

"speId": 12933,

"cuiCode": "BZDJ",

"cuiName": "杯装豆浆",

"speName": "中杯",

"cuiPrice": 1,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23794,

"speId": 12933,

"cuiCode": "BZDJ",

"cuiName": "杯装豆浆",

"speName": "中杯",

"cuiPrice": 1,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23806,

"cuiCode": "DMF",

"cuiName": "大米饭",

"cuiPrice": 1,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23807,

"cuiCode": "HSR",

"cuiName": "红烧肉",

"cuiPrice": 5,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23808,

"cuiCode": "HMJ",

"cuiName": "黄焖鸡米饭",

"cuiPrice": 10,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23807,

"cuiCode": "HSR",

"cuiName": "红烧肉",

"cuiPrice": 5,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23808,

"cuiCode": "HMJ",

"cuiName": "黄焖鸡米饭",

"cuiPrice": 10,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23807,

"cuiCode": "HSR",

"cuiName": "红烧肉",

"cuiPrice": 5,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23808,

"cuiCode": "HMJ",

"cuiName": "黄焖鸡米饭",

"cuiPrice": 10,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23807,

"cuiCode": "HSR",

"cuiName": "红烧肉",

"cuiPrice": 5,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23809,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23810,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23812,

"cuiCode": "ZJX",

"cuiName": "醉江蟹",

"cuiPrice": 15,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23811,

"cuiCode": "YXQZ",

"cuiName": "鱼香茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23810,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23811,

"cuiCode": "YXQZ",

"cuiName": "鱼香茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23812,

"cuiCode": "ZJX",

"cuiName": "醉江蟹",

"cuiPrice": 15,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23811,

"cuiCode": "YXQZ",

"cuiName": "鱼香茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23810,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23812,

"cuiCode": "ZJX",

"cuiName": "醉江蟹",

"cuiPrice": 15,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23811,

"cuiCode": "YXQZ",

"cuiName": "鱼香茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23810,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23812,

"cuiCode": "ZJX",

"cuiName": "醉江蟹",

"cuiPrice": 15,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23811,

"cuiCode": "YXQZ",

"cuiName": "鱼香茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23810,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23812,

"cuiCode": "ZJX",

"cuiName": "醉江蟹",

"cuiPrice": 15,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23811,

"cuiCode": "YXQZ",

"cuiName": "鱼香茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23810,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23812,

"cuiCode": "ZJX",

"cuiName": "醉江蟹",

"cuiPrice": 15,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23811,

"cuiCode": "YXQZ",

"cuiName": "鱼香茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23812,

"cuiCode": "ZJX",

"cuiName": "醉江蟹",

"cuiPrice": 15,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23810,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23811,

"cuiCode": "YXQZ",

"cuiName": "鱼香茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23812,

"cuiCode": "ZJX",

"cuiName": "醉江蟹",

"cuiPrice": 15,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23810,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23812,

"cuiCode": "ZJX",

"cuiName": "醉江蟹",

"cuiPrice": 15,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23811,

"cuiCode": "YXQZ",

"cuiName": "鱼香茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23810,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23813,

"speId": 12978,

"cuiCode": "COCA",

"cuiName": "可口可乐",

"speName": "test",

"cuiPrice": 1,

"flavorId": 84,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1,

"flavorName": "test4"

}, {

"count": 1,

"cuiId": 23808,

"cuiCode": "HMJ",

"cuiName": "黄焖鸡米饭",

"cuiPrice": 10,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23807,

"cuiCode": "HSR",

"cuiName": "红烧肉",

"cuiPrice": 5,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23809,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23810,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"count": 1,

"cuiId": 23809,

"cuiCode": "HSQZ",

"cuiName": "红烧茄子",

"cuiPrice": 8,

"nickName": "阿王",

"cuiThumImg": "",

"customerId": 1

}, {

"cuiId": 23795,

"cuiCode": "RBZ",

"cuiName": "肉包子",

"cuiPrice": 1,

"cuiThumImg": "",

"count": 1,

"customerId": 1,

"nickName": "阿王"

}

],

"isOrganizer": true,

"sharedCoupons": [],

"placeNumber": "A1",

"personCount": 2,

"payments": [{

"name": "前台支付",

"valueType": "",

"payable": 0

}, {

"name": "会员卡现金",

"valueType": "cash",

"payable": 975

}, {

"name": "会员卡饭票",

"valueType": "ticketRestaurant",

"payable": 87.5

}

]

},

"accountDetailCbData": {},

"qrCodeScene": null,

"cartId": 253

}


回答关注问题邀请回答
收藏

1 个回答

  • 疯狂的小辣椒
    疯狂的小辣椒
    2019-04-08

    你好,为了保持社区良好的氛围,请勿重复发帖,此贴先隐藏,感谢配合。

    2019-04-08
    有用
    回复
登录 后发表内容