gpt4 book ai didi

javascript - 后期输出的差异

转载 作者:行者123 更新时间:2023-11-30 19:34:37 25 4
gpt4 key购买 nike

我有两个脚本,一个是Prestashop DHL label creator,一个是我们公司的内部销售应用。我试图将两者结合在一起,这样我们就可以从应用程序生成 DHL 标签,而无需访问商店的管理面板。现在是问题的核心。Prestashop DHL 模块发送带有如下参数的 POST:

Receiver:Address:HouseNumber: #value

我们的内部销售应用程序发送带有如下参数的 POST:

Receiver[Address][HouseNumber]: #value

这可能是一个愚蠢的问题,但有什么区别呢?

这是在我们的应用中生成 POST 的代码

function generateDHLLabel()
{
jQuery.post("prestashop_link", {
DhlShipmentId:'',
DhlOrderId :'',
DhlShipmentCreationDateTime:'',
ShipmentPreset:{ldelim}ShipmentPresetId : 1{rdelim},
ServiceType: 'AH',
DropOffType: 'REGULAR_PICKUP',
LabelType: 'BLP',
Content: 'content',
Comment :'',
Reference: 5508,
ShippingPaymentType: 'SHIPPER',
PaymentType: 'BANK_TRANSFER',
BillingAccountNumber :'',
CostsCenter :'',
ShipmentDate: '2019-05-09',
ShipmentStartHour: '09:00',
ShipmentEndHour: '19:00',
ParcelIdent :'',
Postnummer :'',
ParcelPostalCode :'',
Receiver:{ldelim}
Address:{ldelim}Name: 'Name+Surname',
Street: 'Street+1',
HouseNumber:'',
ApartmentNumber:'',
OriginalAddressString: 'Name+Surname,+Street+1,+00-000+City,+Country',
ParseAlert:'',
PostalCode: '00000',
City: 'CITY',
Country: 'PL'{rdelim},
Contact:{ldelim}Name: 'Name+Surname',
Phone: '000000000',
Email: 'mail@domain.com'{rdelim}{rdelim},
Package:{ldelim}Type: 'PACKAGE',
Weight: '4',
Width: '30',
Height: '30',
Length: '20',
Quantity: '1'{rdelim},
SpecialServices:{ldelim}S_UBEZP: '1',
UBEZP_Value: '123.49',
UBEZP_CurrencyUnitAlert :'',
S_COD: '1',
COD_Value: '123.49',
COD_CurrencyUnitAlert:'',
ROD_Instruction :'',
OriginalCurrencyUnit: 'PLN'{rdelim},
Neighbour:{ldelim}Name:'',
Street:'',
HouseNumber:'',
ApartmentNumber:'',
PostalCode:'',
City:'',
Phone:'',
Email:''{rdelim},






Action:'Send'


}, function(data) {
window.location.href = '{site_url()}app/packing/order-packing/{$this->uri->segment(4)}';
});

}

最佳答案

名称中有方括号。另一个名称中有冒号。就这样。

读取请求的软件可能会关心您使用的是哪个。

关于javascript - 后期输出的差异,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56073573/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com