Amazon订单提交平台报错

Amazon订单提交平台报错

报错提示:

   [Error]The carrier-code field contains an invalid value. To correct this error, choose from the valid set of values.

<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.02</DocumentVersion>
<MerchantIdentifier>A8GCA31XZ7DWX</MerchantIdentifier>
</Header>
<MessageType>ProcessingReport</MessageType>
<Message>
<MessageID>1</MessageID>
<ProcessingReport>
<DocumentTransactionID>298125019790</DocumentTransactionID>
<StatusCode>Complete</StatusCode>
<ProcessingSummary>
<MessagesProcessed>1</MessagesProcessed>
<MessagesSuccessful>0</MessagesSuccessful>
<MessagesWithError>1</MessagesWithError>
<MessagesWithWarning>0</MessagesWithWarning>
</ProcessingSummary>
<Result>
<MessageID>1</MessageID>
<ResultCode>Error</ResultCode>
<ResultMessageCode>5004</ResultMessageCode>
<ResultDescription>The carrier-code field contains an invalid value. To correct this error, choose from the valid set of values.</ResultDescription>
<AdditionalInfo>
<AmazonOrderID>112-6923036-4815434</AmazonOrderID>
</AdditionalInfo>
</Result>
</ProcessingReport>
</Message>
</AmazonEnvelope>


 

解决方式:

如果是程序开发的话,应该是要把运输商的字段,修改下

  物流设置中,承运商填写错误,无法提交平台。 到亚马逊后台手动提交看看承运人和配送服务选择的是什么,芒果中物流设置对应渠道,选择对应的承运商,重新提交平台

其中fedex 的支持方式有

'FEDEX'						    =>		'FedEx',
'FEDEX FREIGHT'                    =>    'Fedex Freight',
'FEDEX SMARTPOST'                      =>    'FedEx SmartPost',
'FEDEX_JP'                     =>    'FEDEX_JP',
'AFL/FEDEX'                    =>    'AFL/Fedex',
'FEDEX FREIGHT'                    =>    'Fedex Freight',

<?php
/** 亚马逊发货的定义** amzn-base  CarrierCode** MFN* 发货 CarrierCode 或者 CarrierName**MCS** 澳洲MCS上传eBay追踪号及供应商更新说明
更新时间: 2019-04-30 16:00:00 访问次数:4678
尊敬的开发者:
您好,感谢您一直以来的支持!
应eBay政策要求,5月1日起,针对澳洲尾程服务MCS Economy Parcel上传eBay跟踪号时,需做如下调整:
上传跟踪号
上传Carrier Name
以BN******(BN开头)的12位快递单号
Fastway Couriers
以33******(33开头)的23位快递单号
Australia Post
https://developer.winit.com.cn/document/detail/id/209.html
为了适用这个产品,保证卖家可以上传正确的跟踪号,希望广大ERP开发者朋友们,
对标记发货模块稍作优化或调整,以满足卖家使用该产品跟踪号上传需求。建议各大ERP对接 【查询出库订单-queryOutboundOrder】获取订单最终的派送商,针对该派送商进行映射配置,将正确的Carrier传到各大电商平台。
万邑通已于4月30号将Open API接口【查询出库订单-queryOutboundOrder】的返回数值做调整,
返回出参中“carrier”表示MCS服务最终使用的供应商名称。以下提供API链接和某ERP系统物流模块原型,
同步跟踪号/运单号功能的建议逻辑,供您参考。* */
return  ['UPSMI'						    =>		'UPSMI','FEDEX'						    =>		'FedEx','DHL'						    =>		'DHL','FASTWAY'						    =>		'Fastway','GLS'						    =>		'GLS','GO!'						    =>		'GO!','HERMES LOGISTIK GRUPPE'						    =>		'Hermes Logistik Gruppe','ROYAL MAIL'						    =>		'Royal Mail','PARCELFORCE'						    =>		'Parcelforce','CITY LINK'						    =>		'City Link','TNT'						    =>		'TNT','TARGET'						    =>		'Target','SAGAWAEXPRESS'						    =>		'SagawaExpress','NIPPONEXPRESS'						    =>		'NipponExpress','YAMATOTRANSPORT'						    =>		'YamatoTransport','DHL GLOBAL MAIL'						    =>		'DHL Global Mail','UPS MAIL INNOVATIONS'						    =>		'UPS Mail Innovations','FEDEX SMARTPOST'						    =>		'FedEx SmartPost','OSM'						    =>		'OSM','ONTRAC'						    =>		'OnTrac','STREAMLITE'						    =>		'Streamlite','NEWGISTICS'						    =>		'Newgistics','CANADA POST'						    =>		'Canada Post','BLUE PACKAGE'						    =>		'Blue Package','CHRONOPOST'						    =>		'Chronopost','DEUTSCHE POST'						    =>		'Deutsche Post','DPD'						    =>		'DPD','LA POSTE'						    =>		'La Poste','PARCELNET'						    =>		'Parcelnet','POSTE ITALIANE'						    =>		'Poste Italiane','SDA'						    =>		'SDA','SMARTMAIL'						    =>		'Smartmail','FEDEX_JP'						    =>		'FEDEX_JP','JP_EXPRESS'						    =>		'JP_EXPRESS','NITTSU'						    =>		'NITTSU','SAGAWA'						    =>		'SAGAWA','YAMATO'						    =>		'YAMATO','BLUEDART'						    =>		'BlueDart','AFL/FEDEX'						    =>		'AFL/Fedex','ARAMEX'						    =>		'Aramex','INDIA POST'						    =>		'India Post','PROFESSIONAL'						    =>		'Professional','DTDC'						    =>		'DTDC','OVERNITE EXPRESS'						    =>		'Overnite Express','FIRST FLIGHT'						    =>		'First Flight','DELHIVERY'						    =>		'Delhivery','LASERSHIP'						    =>		'Lasership','YODEL'						    =>		'Yodel','OTHER'						    =>		'Other','AMAZON SHIPPING'						    =>		'Amazon Shipping','SEUR'						    =>		'Seur','CORREOS'						    =>		'Correos','MRW'						    =>		'MRW','ENDOPACK'						    =>		'Endopack','CHRONO EXPRESS'						    =>		'Chrono Express','NACEX'						    =>		'Nacex','OTRO'						    =>		'Otro','CORREIOS'						    =>		'Correios','TOLL GLOBAL EXPRESS'						    =>		'Toll Global Express','CHINA POST'						    =>		'China Post','AUSSIE_POST'						    =>		'AUSSIE_POST','EUB'						    =>		'EUB','AUSTRALIA POST'						    =>		'Australia Post','YUN EXPRESS'						    =>		'Yun Express','4PX'						    =>		'4PX','HERMES'						    =>		'Hermes','SF EXPRESS'						    =>		'SF Express','BRT'						    =>		'BRT','AUSTRALIA POST-CONSIGNMENT'						    =>		'Australia Post-Consignment','AUSTRALIA POST-ARTICLEID'						    =>		'Australia Post-ArticleId','SENDLE'						    =>		'Sendle','COURIERSPLEASE'						    =>		'CouriersPlease','A-1'						    =>		'A-1','AAA COOPER'						    =>		'AAA Cooper','ABF'						    =>		'ABF','ALLJOY'						    =>		'ALLJOY','ARAS KARGO'						    =>		'Aras Kargo','ARKAS'						    =>		'Arkas','ARROW XL'						    =>		'Arrow XL','ASENDIA'						    =>		'Asendia','ASGARD'						    =>		'Asgard','ASSETT'						    =>		'Assett','AT POST'						    =>		'AT POST','ATS'						    =>		'ATS','BALNAK'						    =>		'Balnak','BEIJING QUANFENG EXPRESS'						    =>		'Beijing Quanfeng Express','BEST BUY'						    =>		'Best Buy','BEST EXPRESS'						    =>		'Best Express','BJS'						    =>		'BJS','BOMBAX'						    =>		'Bombax','CART2INDIA'						    =>		'Cart2India','CDC'						    =>		'CDC','CELERITAS'						    =>		'CELERITAS','CEVA'						    =>		'CEVA','CEVA LOJISTIK'						    =>		'Ceva Lojistik','CITITRANS'						    =>		'Cititrans','COLIPOSTE'						    =>		'Coliposte','COLISSIMO'						    =>		'Colissimo','CONWAY'						    =>		'Conway','CORREOS EXPRESS'						    =>		'Correos Express','COURIERS PLEASE'						    =>		'Couriers Please','CTTEXPRESS'						    =>		'CTTExpress','DB SCHENKER'						    =>		'DB Schenker','DHL ECOMMERCE'						    =>		'DHL eCommerce','DHL EXPRESS'						    =>		'DHL Express','DHL FREIGHT'						    =>		'DHL Freight','DHL HOME DELIVERY'						    =>		'DHL Home Delivery','DHL KARGO'						    =>		'DHL Kargo','DHL-PAKET'						    =>		'DHL-Paket','DHLPL'						    =>		'DHLPL','DIGITAL DELIVERY'						    =>		'Digital Delivery','DIRECTLOG'						    =>		'DirectLog','DOTZOT'						    =>		'Dotzot','DSV'						    =>		'DSV','DX FREIGHT'						    =>		'DX Freight','ECMS'						    =>		'ECMS','ECOM EXPRESS'						    =>		'Ecom Express','EMIRATES POST'						    =>		'Emirates Post','ENERGO'						    =>		'Energo','ENVIALIA'						    =>		'Envialia','ESTAFETA'						    =>		'Estafeta','ESTES'						    =>		'Estes','FEDEX FREIGHT'						    =>		'Fedex Freight','FILLO KARGO'						    =>		'Fillo Kargo','FIRST FLIGHT CHINA'						    =>		'First Flight China','FIRST MILE'						    =>		'First Mile','GATI'						    =>		'Gati','GEL EXPRESS'						    =>		'GEL Express','GEODIS'						    =>		'geodis','GEODIS CALBERSON'						    =>		'Geodis Calberson','GEOPOST KARGO'						    =>		'Geopost Kargo','HERMES EINRICHTUNGSSERVICE'						    =>		'Hermes Einrichtungsservice','HOME LOGISTICS'						    =>		'Home Logistics','HONGKONG POST'						    =>		'Hongkong Post','HOROZ LOJISTIK'						    =>		'Horoz Lojistik','HS CODE'						    =>		'HS code','HUNTER LOGISTICS'						    =>		'Hunter Logistics','ICC WORLDWIDE'						    =>		'ICC Worldwide','IDS NETZWERK'						    =>		'IDS Netzwerk','INPOST'						    =>		'InPost','IPARCEL'						    =>		'iParcel','JAPAN POST'						    =>		'Japan Post','JCEX'						    =>		'JCEX','KARGOKAR'						    =>		'Kargokar','KUEHNE+NAGEL'						    =>		'Kuehne+Nagel','LANDMARK'						    =>		'Landmark','METRO KARGO'						    =>		'Metro Kargo','MNG KARGO'						    =>		'MNG Kargo','NARPOST KARGO'						    =>		'Narpost Kargo','NEXIVE'						    =>		'Nexive','NINJAVAN'						    =>		'Ninjavan','OLD DOMINION'						    =>		'Old Dominion','ONEWORLDEXPRESS'						    =>		'OneWorldExpress','PANTHER'						    =>		'Panther','PILOT'						    =>		'Pilot','PILOT FREIGHT'						    =>		'Pilot Freight','POLISH POST'						    =>		'Polish Post','POST NL'						    =>		'Post NL','POSTNORD'						    =>		'PostNord','PTT KARGO'						    =>		'PTT Kargo','PUROLATOR'						    =>		'PUROLATOR','QEXPRESS'						    =>		'QExpress','QXPRESS'						    =>		'Qxpress','R+L'						    =>		'R+L','RABEN GROUP'						    =>		'Raben Group','RHENUS'						    =>		'Rhenus','RIECK'						    =>		'Rieck','RIVIGO'						    =>		'Rivigo','ROADRUNNER'						    =>		'Roadrunner','SAFEXPRESS'						    =>		'Safexpress','SAIA'						    =>		'Saia','SEINO'						    =>		'Seino','SEINO TRANSPORTATION'						    =>		'SEINO TRANSPORTATION','SELEM KARGO'						    =>		'Selem Kargo','SELF DELIVERY'						    =>		'Self Delivery','SFC'						    =>		'SFC','SHIP DELIGHT'						    =>		'Ship Delight','SHIP GLOBAL US'						    =>		'Ship Global US','SHIPECONOMY'						    =>		'ShipEconomy','SHIPGLOBAL'						    =>		'ShipGlobal','SHREE MARUTI COURIER'						    =>		'Shree Maruti Courier','SHREE TIRUPATI COURIER'						    =>		'Shree Tirupati Courier','SHUNFENG EXPRESS'						    =>		'Shunfeng Express','SINGAPORE POST'						    =>		'Singapore Post','SOUTH EASTERN FREIGHT LINES'						    =>		'South Eastern Freight Lines','SPEEDEX'						    =>		'Speedex','SPOTON'						    =>		'Spoton','STARTRACK-ARTICLEID'						    =>		'StarTrack-ArticleID','STARTRACK-CONSIGNMENT'						    =>		'StarTrack-Consignment','STO EXPRESS'						    =>		'STO Express','TEZEL LOJISTIK'						    =>		'Tezel Lojistik','THE PROFESSIONAL COURIERS'						    =>		'The Professional Couriers','TIPSA'						    =>		'TIPSA','TNT KARGO'						    =>		'TNT Kargo','TNTIT'						    =>		'TNTIT','TOTAL EXPRESS'						    =>		'Total Express','TRACKON'						    =>		'Trackon','TRANSFOLHA'						    =>		'TransFolha','TUFFNELLS'						    =>		'Tuffnells','UPS FREIGHT'						    =>		'UPS Freight','URBAN EXPRESS'						    =>		'Urban Express','VIR'						    =>		'VIR','VNLIN'						    =>		'VNLIN','WANBEXPRESS'						    =>		'WanbExpress','WATKINS AND SHEPARD'						    =>		'Watkins and Shepard','WHIZZARD'						    =>		'Whizzard','WINIT'						    =>		'WINIT','XDP'						    =>		'XDP','XPO FREIGHT'						    =>		'XPO Freight','XPRESSBEES'						    =>		'Xpressbees','YDH'						    =>		'YDH','YELLOW FREIGHT'						    =>		'Yellow Freight','YTO EXPRESS'						    =>		'YTO Express','YUNDA EXPRESS'						    =>		'Yunda Express','ZTO EXPRESS'						    =>		'ZTO Express','TOURLINE'						    =>		'Tourline','CENTEX'						    =>		'Centex','IMILE'						    =>		'iMile','CHUKOU1'						    =>		'Chukou1','CNE'						    =>		'CNE','EQUICK'						    =>		'Equick','UBI'						    =>		'UBI','SUNYOU'						    =>		'Sunyou','DASCHER'						    =>		'DASCHER','DACHSER'						    =>		'DACHSER','YANWEN'						    =>		'Yanwen','ROYAL_MAIL'						    =>		'ROYAL_MAIL','WHISTL'						    =>		'Whistl','HERMES (CORPORATE)'						    =>		'Hermes (Corporate)','AMAUK'						    =>		'AMAUK','THE DELIVERY GROUP'						    =>		'The Delivery Group','RMLGB'						    =>		'RMLGB','UKMAIL'						    =>		'UKMail','APC'						    =>		'APC','JERSEY POST'						    =>		'Jersey Post','CARIBOU'						    =>		'Caribou','HERMES UK'						    =>		'Hermes UK','DPD LOCAL'						    =>		'DPD Local','UK MAIL'						    =>		'UK MAIL','APC OVERNIGHT'						    =>		'APC Overnight','USPS'						    =>		'USPS','DX EXPRESS'						    =>		'DX Express','DX SECURE'						    =>		'DX Secure','PARCEL STATION'						    =>		'Parcel Station','AMZL_UK'						    =>		'AMZL_UK','DX'						    =>		'DX','APC-OVERNIGHT'						    =>		'APC-Overnight','B2C EUROPE'						    =>		'B2C Europe','ITD GLOBAL'						    =>		'ITD Global','PARCELHUB'						    =>		'Parcelhub','HUBEUROPE'						    =>		'HubEurope','HUXLOE LOGISTICS'						    =>		'Huxloe Logistics','GFS'						    =>		'GFS','SPRING GDS'						    =>		'Spring GDS','VERAGE SHIPPING'						    =>		'Verage Shipping','MHI'						    =>		'MHI','TRULINE'						    =>		'Truline','DELIVERY GROUP'						    =>		'Delivery Group','PDC LOGISTICS'						    =>		'PDC Logistics','PARCEL2GO.COM'						    =>		'PARCEL2GO.COM','DEL DELIVERIES'						    =>		'DEL Deliveries','PARCELINK LOGISTICS'						    =>		'Parcelink Logistics','CUBYN'						    =>		'Cubyn','HOTPOINT LOGISTICS'						    =>		'Hotpoint Logistics','GEL'						    =>		'GEL','IDS'						    =>		'IDS','RABEN'						    =>		'Raben','KUEHNE NAGEL'						    =>		'Kuehne Nagel','AO DEUTSCHLAND'						    =>		'AO Deutschland','MZZ-BRIEFDIENST'						    =>		'MZZ-Briefdienst','DER KURIER'						    =>		'Der Kurier','REDUR'						    =>		'REDUR','EUROPACZKA'						    =>		'Europaczka','EMONS'						    =>		'Emons','SEVEN SENDERS'						    =>		'Seven Senders','SENDCLOUD'						    =>		'Sendcloud','MAIL ALLIANCE'						    =>		'Mail Alliance','MAINPOST'						    =>		'Mainpost','PIN'						    =>		'PIN','POST MODERN'						    =>		'Post Modern','TRANS-O-FLEX'						    =>		'Trans-o-Flex','EXAPAQ'						    =>		'Exapaq','TRAKPAK'						    =>		'Trakpak','BPOST'						    =>		'BPOST','UPAKWESHIP'						    =>		'UPakWeShip','MONDIAL RELAY'						    =>		'Mondial Relay','SWISS POST'						    =>		'Swiss post','UPS'						    =>		'UPS','CONSEGNA MEZZI PROPRI'						    =>		'Consegna Mezzi Propri','DACSHER'						    =>		'DACSHER','XPO'						    =>		'XPO','HEPPNER'						    =>		'Heppner','SPRINT'						    =>		'Sprint','SUSA'						    =>		'Susa','ZELERIS'						    =>		'Zeleris','TWS'						    =>		'TWS','SAILPOST'						    =>		'Sailpost','WPX'						    =>		'WPX','HRP'						    =>		'HRP','SENDING'						    =>		'Sending','CBL'						    =>		'CBL','DYNAMIC EXPRESS'						    =>		'DYNAMIC EXPRESS','EINSA SOURCING'						    =>		'EINSA SOURCING','GRUPO LOGISTIC'						    =>		'GRUPO LOGISTIC','KEAVO'						    =>		'KEAVO','NTL'						    =>		'NTL','SPRING'						    =>		'SPRING','SZENDEX'						    =>		'Szendex','TDN'						    =>		'TDN','TRANSARAGONéS'						    =>		'Transaragonés','TSB'						    =>		'TSB','TXT'						    =>		'TXT','TYD'						    =>		'TyD','VIA XPRESS'						    =>		'Via Xpress','CTT EXPRESS'						    =>		'CTT EXPRESS','FRANCE EXPRESS'						    =>		'FRANCE EXPRESS','ARCO SPEDIZIONI'						    =>		'Arco Spedizioni','FAST EST'						    =>		'FAST EST','FERCAM'						    =>		'FERCAM','LICCARDI'						    =>		'Liccardi','MILKMAN'						    =>		'Milkman','ZUST AMBROSETTI'						    =>		'Zust Ambrosetti','BARTOLINI'						    =>		'Bartolini','AMZL'						    =>		'AMZL','ANDERE'						    =>		'Andere','AO'						    =>		'AO','B2C'						    =>		'B2C','CARGOLINE'						    =>		'CargoLine','CITYPOST'						    =>		'Citypost','DELIVENGO'						    =>		'Delivengo','DPB'						    =>		'DPB','EKI TRANS'						    =>		'EKI Trans','FRACHTPOST'						    =>		'FRACHTPOST','HELLMANN'						    =>		'Hellmann','HLOG'						    =>		'Hlog','HONESTEYE'						    =>		'honesteye','HUXLOE'						    =>		'Huxloe','INTERLINK'						    =>		'Interlink','INTERNO'						    =>		'Interno','INTERSOFT'						    =>		'Intersoft','JPL UPU'						    =>		'JPL UPU','KYBOTECH'						    =>		'Kybotech','LANDMARK GLOBAL'						    =>		'Landmark Global','MBE'						    =>		'MBE','MEZZI PROPRI'						    =>		'Mezzi propri','MZZ BRIEFDIENST'						    =>		'MZZ Briefdienst','NOVEO'						    =>		'NOVEO','OCS WORLDWIDE'						    =>		'OCS Worldwide','ONTIME'						    =>		'ONTIME','PALLETLINE'						    =>		'Palletline','PALLETWAYS'						    =>		'Palletways','PARCEL HUB'						    =>		'Parcel Hub','PARCEL MONKEY'						    =>		'Parcel Monkey','PARCEL2GO'						    =>		'Parcel2go','PARCELDENONLINE'						    =>		'ParcelDenOnline','PARCELONE'						    =>		'ParcelOne','POSTNL'						    =>		'PostNL','RBNA'						    =>		'RBNA','RR DONNELLEY'						    =>		'RR Donnelley','SCHWEIZER POST'						    =>		'Schweizer Post','SHIPMATE'						    =>		'Shipmate','SONSTIGE'						    =>		'Sonstige','STAHLMANN AND SACHS'						    =>		'Stahlmann and Sachs','STAMPIT'						    =>		'Stampit','STG'						    =>		'STG','TRANSAHER'						    =>		'Transaher','TRANSLINK'						    =>		'Translink','TRANSOFLEX'						    =>		'Transoflex','UPSILON'						    =>		'Upsilon','APC POSTAL LOGISTICS'						    =>		'APC POSTAL LOGISTICS','AMAZON HORIZON'						    =>		'AMAZON HORIZON','COLIS PRIVé'						    =>		'Colis Privé','APG ECOMMERCE'						    =>		'APG eCommerce','DHL PARCEL UK'						    =>		'DHL Parcel UK','BR1 EXPRESS'						    =>		'BR1 Express','BOMBINO EXPRESS'						    =>		'Bombino Express','USHIP'						    =>		'Uship','HUAHAN LOGISITICS'						    =>		'Huahan Logisitics','STAPLES'						    =>		'Staples','ARAS'						    =>		'ARAS','HNC'						    =>		'HNC','EPOST GLOBAL'						    =>		'ePost Global','LICCARDI TRASPORTI'						    =>		'Liccardi Trasporti','LF LOGISTIC'						    =>		'LF Logistic','360LION'						    =>		'360lion','SMSA'						    =>		'SMSA','ECOM SHIPPING SOLUTIONS PVT LTD'						    =>		'Ecom Shipping solutions PVT ltd','NAQEL EXPRESS'						    =>		'NAQEL EXPRESS',];

处理代码

先把对应的代码转换成大写,然后去匹配

                            case 'amazon':$amazon_carrier_array = require __dir__ . '/../../../config_amazon_carriercode.php';$shippingCarrierName ='';//amazon支持的几个物流公司,名称需要转换一下//澳洲MCS上传amazon追踪号及供应商更新说明if($shippingCarrierCode == 'MCS' && (substr($backdata['data']['tracking_no'],0,2) == 'BN' ||substr($backdata['data']['tracking_no'],0,2) == '33')){//.以BN******(BN开头)的12位快递 Fastway (ebay 是Fastway Couriers)if(substr($backdata['data']['tracking_no'],0,2) == 'BN'){$shippingCarrierCode = 'Fastway';}if(substr($backdata['data']['tracking_no'],0,2) == '33'){$shippingCarrierCode = 'Australia Post';}}else{if(array_key_exists(strtoupper($shippingCarrierCode), $amazon_carrier_array)){$shippingCarrierCode       = $amazon_carrier_array[strtoupper($shippingCarrierCode)];      //carrier}else{$shippingCarrierName  = $shippingCarrierCode;  //物流code和name二选一$shippingCarrierCode   = '';}}//amazon 更新發貨單號try {$amazon_order_shipped_feed_id = $this->setAmazonOrderShipped($orderrow['shop_id'], $orderrow['marketplace_id'],$orderrow[$orderid_order_item], $lineItems, date('c', time()),$shippingCarrierCode, $backdata['data']['tracking_no'],$shippingCarrierName);} catch (ApiException $e) {$this->error($e->getMessage());} catch (DataNotFoundException $e) {$this->error($e->getMessage());} catch (ModelNotFoundException $e) {$this->error($e->getMessage());} catch (DbException $e) {$this->error($e->getMessage());}break;

有问题咨询+V huazhognxiaosx

 +Q群 910085730

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/730264.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

浏览器一键重新发起请求

一、需求场景 在前端开发过程中&#xff0c;经常会需要重新请求后台进行代码调试&#xff0c;之前的常规方法是刷新浏览器页面或者点击页面进行交互&#xff0c;这样对多个请求的场景就很方便&#xff0c;但是往往很多时候我们只是单纯的想重新发起一个请求&#xff08;多个请求…

uip 协议栈详解及Tcp server及client测试

目录 1、uip协议栈简介2、uip源码2.1 下载地址2.2 目录结构3、uip的配置项及API3.1 uip 的配置项3.2 uip 主要API4、应用测试4.1 Tcp server4.1.1 测试代码4.1.2 测试结果4.2 Tcp client4.2.1 测试代码4.2.2 测试结果

力扣---接雨水---单调队列

题目&#xff1a; 单调队列思想&#xff1a; 没有思路的小伙伴可以先把这个想清楚哦&#xff1a;力扣hot10---大根堆双端队列-CSDN博客 从上面的图就可以发现&#xff0c;如果柱子呈递减序列&#xff0c;那么不会接到雨水&#xff0c;只要有一个小凸起柱子&#xff0c;那么这个…

PubMedQA数据集分享

来源: AINLPer公众号&#xff08;每日干货分享&#xff01;&#xff01;&#xff09; 编辑: ShuYini 校稿: ShuYini 时间: 2024-2-28 该数据集由匹兹堡、卡内基梅隆等大学提出&#xff0c;它是第一个需要对生物医学研究文本进行推理&#xff0c;特别是其定量内容的问答数据集。…

553C++笔试题目(持续更新)

总目录 1.rand()随机数函数2.函数模板(19年写一个二分查找函数模板用递归) 1.rand()随机数函数 是C标准库 <cstdlib> 中的一个随机数生成函数&#xff0c;用于生成伪随机数。它返回一个在0到RAND_MAX之间的整数&#xff0c;RAND_MAX是一个预定义的常量&#xff0c;通常是…

【前端】-初始前端以及html的学习

&#x1f496;作者&#xff1a;小树苗渴望变成参天大树&#x1f388; &#x1f389;作者宣言&#xff1a;认真写好每一篇博客&#x1f4a4; &#x1f38a;作者gitee:gitee✨ &#x1f49e;作者专栏&#xff1a;C语言,数据结构初阶,Linux,C 动态规划算法&#x1f384; 如 果 你 …

Vue开发实例(八)Vuex状态管理store

Vuex状态管理store 一、Vuex的安装与配置二、store使用方法1、基础使用2、提交变更3、getters使用4、在其他页面&#xff08;组件&#xff09;中显示5、modules多模块 做vue项目的时候&#xff0c; store状态管理器可以帮助我们完成一些数据的存储和管理&#xff0c;通俗理解是…

如何将任何文本转换为概念图(GC)

原文地址&#xff1a;how-to-convert-any-text-into-a-graph-of-concepts 使用 Mistral 7B 将任何文本语料库转换为知识图的方法 2023 年 11 月 10 日 使用递归 RAG 方法来实现具有多跳推理的 QnA&#xff0c;以回答基于大型文本语料库的复杂查询。 知识图增强生成与递归 R…

ResNet的特点?BN层的目的?模型验证的时候可以用BN吗?

ResNet&#xff08;残差神经网络&#xff09; 残差思想&#xff1a;主要目的是为了解决深度神经网络训练过程中的梯度消失和梯度爆炸问题&#xff0c;同时帮助网络更好地学习到特征表示&#xff0c;突出微小的变化&#xff0c;提高网络的性能和泛化能力。从而突出微小的变化 …

unity-urp:视野雾

问题背景 恐怖游戏在黑夜或者某些场景下&#xff0c;需要用雾或者黑暗遮盖视野&#xff0c;搭建游戏氛围 效果 场景中&#xff0c;雾会遮挡场景和怪物&#xff0c;但是在玩家视野内雾会消散&#xff0c;距离玩家越近雾越薄。 当前是第三人称视角&#xff0c;但是可以轻松的…

Python 的闭包,你知道多少?一起聊聊

你好&#xff0c;我是 shengjk1&#xff0c;多年大厂经验&#xff0c;努力构建 通俗易懂的、好玩的编程语言教程。 欢迎关注&#xff01;你会有如下收益&#xff1a; 了解大厂经验拥有和大厂相匹配的技术等 一、前言 看到了很多函数套函数的函数&#xff0c;总之对于 Java 的…

Java 继承、接口与抽象类教程

Java 继承、接口与抽象类教程 在Java编程中&#xff0c;继承、接口和抽象类是面向对象编程&#xff08;OOP&#xff09;的三大核心概念。它们提供了代码重用、多态性和扩展性的基础。本教程将详细解释这三个概念&#xff0c;并通过示例展示如何在Java中使用它们。 一、继承 …

android so载入过程

源自android 9 看源代码的网页 /bionic/libdl/libdl_static.c 好像没用。都是空的 /bionic/libdl/libdl.cpp 主角 22// These functions are exported by the loader 23// TODO(dimitry): replace these with reference to libc.so101// Proxy calls to bionic loader 102_…

工具方法 - 任务跟踪清单

1&#xff0c;先创建Primary Task&#xff0c;不要超过三条。重要的工作任务&#xff0c;一些约好的活动等。 2&#xff0c;再创建Secondary Task&#xff0c;不要超过两条。一些学习任务&#xff0c;杂事琐事等。 3&#xff0c;任务跟踪周期为一周&#xff0c;每日早晚更新状态…

LeetCode | 搜索插入位置

Problem: 35. 搜索插入位置 文章目录 思路解题方法复杂度Code 思路 用python对列表特有的操作——index。 解题方法 见上 复杂度 时间复杂度: O(n) 空间复杂度: O(1) Code class Solution:def searchInsert(self, nums: List[int], target: int) -> int:try:return …

【C++】十大排序算法之 归并排序 快速排序

本次介绍内容参考自&#xff1a;十大经典排序算法&#xff08;C实现&#xff09; - fengMisaka - 博客园 (cnblogs.com) 排序算法是《数据结构与算法》中最基本的算法之一。 十种常见排序算法可以分为两大类&#xff1a; 比较类排序&#xff1a;通过比较来决定元素间的相对次序…

力扣--滑动窗口438.找到字符串中所有字母异位词

思路分析&#xff1a; 使用两个数组snum和pnum分别记录字符串s和p中各字符出现的次数。遍历字符串p&#xff0c;统计其中各字符的出现次数&#xff0c;存储在pnum数组中。初始化snum数组&#xff0c;统计s的前m-1个字符的出现次数。从第m个字符开始遍历s&#xff0c;通过滑动窗…

史上最细,接口自动化测试用例设计编写总结,一篇带你打通...

目录&#xff1a;导读 前言一、Python编程入门到精通二、接口自动化项目实战三、Web自动化项目实战四、App自动化项目实战五、一线大厂简历六、测试开发DevOps体系七、常用自动化测试工具八、JMeter性能测试九、总结&#xff08;尾部小惊喜&#xff09; 前言 说到自动化测试&a…

ArrayList 和 LinkedList 的区别

ArrayList ArrayList 是基于动态数组实现的&#xff0c; 它使用一块连续的内存空间来存储元素&#xff0c;因此访问元素的速度非常快&#xff08;时间复杂度为 O(1)&#xff09;&#xff0c; 但是&#xff0c;在插入或删除元素时&#xff0c;如果位置不在数组末尾&#xff0…

亚信安慧AntDB:“融合+实时”引领数据库创新

在当今多变的数据应用场景中&#xff0c;AntDB作为行业领先的超融合流式实时数仓&#xff0c;秉承着“融合实时”的研发理念&#xff0c;全面应对企业日益复杂的数据处理需求。通过SQL接口访问多种执行引擎&#xff0c;AntDB在实现交易、分析等多重能力的“超融合”方面取得了显…