收藏
回答

统一下单接口中detail字段过长时,下单失败返回“post数据为空“的错误

以下是debug的日志,从日志来看,post请求报文内容都已按要求传输给微信服务器接口。如果减少detail字段里商品列表的长度,下单可以成功。但目前不确定这个临界值是多少。我这传输的detail字段字符数为4500,我之前一直使用的是V2版本的接口,文档里对于该字段的最长字符数限制是6000。按道理也应该还没超出。请哪位达人帮忙看看具体是什么原因呢?

2023-01-03 15:34:15,342 DEBUG [main] - CookieSpec selected: best-match

2023-01-03 15:34:15,352 DEBUG [main] - Auth cache not set in the context

2023-01-03 15:34:15,353 DEBUG [main] - Connection request: [route: {s}->https://api.mch.weixin.qq.com:443][total kept alive: 0; route allocated: 0 of 100; total allocated: 0 of 200]

2023-01-03 15:34:15,367 DEBUG [main] - Connection leased: [id: 0][route: {s}->https://api.mch.weixin.qq.com:443][total kept alive: 0; route allocated: 1 of 100; total allocated: 1 of 200]

2023-01-03 15:34:15,369 DEBUG [main] - Opening connection {s}->https://api.mch.weixin.qq.com:443

2023-01-03 15:34:15,373 DEBUG [main] - Connecting to api.mch.weixin.qq.com/101.91.0.140:443

2023-01-03 15:34:15,641 DEBUG [main] - Connection established 192.168.30.24:51573<->101.91.0.140:443

2023-01-03 15:34:15,641 DEBUG [main] - Executing request POST /pay/unifiedorder HTTP/1.1

2023-01-03 15:34:15,642 DEBUG [main] - Target auth state: UNCHALLENGED

2023-01-03 15:34:15,642 DEBUG [main] - Proxy auth state: UNCHALLENGED

2023-01-03 15:34:15,643 DEBUG [main] - http-outgoing-0 >> POST /pay/unifiedorder HTTP/1.1

2023-01-03 15:34:15,643 DEBUG [main] - http-outgoing-0 >> Content-Length: 9050

2023-01-03 15:34:15,643 DEBUG [main] - http-outgoing-0 >> Content-Type: application/xml; charset=UTF-8

2023-01-03 15:34:15,643 DEBUG [main] - http-outgoing-0 >> Host: api.mch.weixin.qq.com

2023-01-03 15:34:15,643 DEBUG [main] - http-outgoing-0 >> Connection: Keep-Alive

2023-01-03 15:34:15,643 DEBUG [main] - http-outgoing-0 >> User-Agent: Apache-HttpClient/4.3.4 (java 1.5)

2023-01-03 15:34:15,643 DEBUG [main] - http-outgoing-0 >> Accept-Encoding: gzip,deflate

2023-01-03 15:34:15,643 DEBUG [main] - http-outgoing-0 >> "POST /pay/unifiedorder HTTP/1.1[\r][\n]"

2023-01-03 15:34:15,643 DEBUG [main] - http-outgoing-0 >> "Content-Length: 9050[\r][\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "Content-Type: application/xml; charset=UTF-8[\r][\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "Host: api.mch.weixin.qq.com[\r][\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.3.4 (java 1.5)[\r][\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "[\r][\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> " <xml>[\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "  <nonce_str>vpgkkrfsg8m5ck8cj8kck8kundj4td8w</nonce_str>[\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "  <time_expire>20230103153127</time_expire>[\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "  <openid>oEiM_5TNXXaQny1vsG-P80ZOkX7M</openid>[\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "  <sign>AA491D5C5A764265DCE75A15BDC88764</sign>[\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "  <mch_id>15388888</mch_id>[\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "  <body>[0xe5][0xb0][0x8f]6[0xe4][0xb9][0xb0][0xe8][0x8f][0x9c]-[0xe5][0x95][0x86][0xe5][0x93][0x81]</body>[\n]"

2023-01-03 15:34:15,644 DEBUG [main] - http-outgoing-0 >> "  <notify_url>https://api.asiatop.com/common-server/pay/weixin/notify</notify_url>[\n]"

2023-01-03 15:34:15,645 DEBUG [main] - http-outgoing-0 >> "  <spbill_create_ip>111.111.111.111</spbill_create_ip>[\n]"

2023-01-03 15:34:15,645 DEBUG [main] - http-outgoing-0 >> "  <version>1.0</version>[\n]"

2023-01-03 15:34:15,645 DEBUG [main] - http-outgoing-0 >> "  <out_trade_no>20230103153050019762</out_trade_no>[\n]"

2023-01-03 15:34:15,645 DEBUG [main] - http-outgoing-0 >> "  <appid>wx88888888</appid>[\n]"

2023-01-03 15:34:15,645 DEBUG [main] - http-outgoing-0 >> "  <total_fee>117517</total_fee>[\n]"

2023-01-03 15:34:15,645 DEBUG [main] - http-outgoing-0 >> "  <trade_type>JSAPI</trade_type>[\n]"

2023-01-03 15:34:15,647 DEBUG [main] - http-outgoing-0 >> "  <detail>{&quot;goods_detail&quot;:[{&quot;goods_name&quot;:&quot;[0xe8][0xa5][0xbf][0xe7][0x8f][0xad][0xe7][0x89][0x99][0xe7][0x8c][0xaa][0xe8][0x82][0x89][0xe9][0xa6][0x99][0xe8][0x82][0xa0]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:132,&quot;goods_id&quot;:&quot;103&quot;},{&quot;goods_name&quot;:&quot;[0xe8][0x8a][0x82][0xe5][0x81][0x87][0xe6][0x97][0xa5][0xe6][0xb5][0x8b][0xe8][0xaf][0x95][0xe4][0xb8][0x93][0xe7][0x94][0xa8][0xef][0xbc][0x88][0xe8][0xaf][0xb7][0xe5][0x8b][0xbf][0xe7][0xbc][0x96][0xef][0xbc][0x89]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:2,&quot;goods_id&quot;:&quot;368&quot;},{&quot;goods_name&quot;:&quot;[0xe9][0xb8][0xa1][0xe8][0x9b][0x8b][0xe7][0xb1][0xb3][0xe7][0xb3][0x95][0xef][0xbc][0x88][0xe4][0xb8][0xba][0xe7][0xa1][0xae][0xe4][0xbf][0x9d][0xe6][0x96][0xb0][0xe9][0xb2][0x9c][0xef][0xbc][0x8c][0xe9][0x9a][0x94][0xe6][0x97][0xa5][0xe8][0xbe][0xbe][0xef][0xbc][0x89]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:863,&quot;goods_id&quot;:&quot;229&quot;},{&quot;goods_name&quot;:&quot;biubiuYO~&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1094,&quot;goods_id&quot;:&quot;428&quot;},{&quot;goods_name&quot;:&quot;12.23[0xe6][0x8d][0x9f][0xe8][0x80][0x97][0xe8][0xa1][0xa8][0xe6][0xb5][0x8b][0xe8][0xaf][0x95][0xe5][0x95][0x86][0xe5][0x93][0x81][0xef][0xbc][0x88][0xe9][0x9d][0x9e][0xe6][0xb0][0xb4][0xe4][0xba][0xa7][0xef][0xbc][0x89]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:945,&quot;goods_id&quot;:&quot;100192&quot;},{&quot;goods_name&quot;:&quot;[0xe8][0xb6][0x8a][0xe5][0x8d][0x97][0xe9][0xab][0x98][0xe4][0xb9][0x90][0xe8][0x9c][0x9c][0xe8][0x8a][0x92][0xe6][0x9e][0x9c]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1393,&quot;goods_id&quot;:&quot;128&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xb3][0xb0][0xe5][0x9b][0xbd][0xe6][0xa0][0x91][0xe4][0xb8][0x8a][0xe7][0x9f][0xbf][0xe7][0x83][0xa4][0xe6][0xa4][0xb0]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1194,&quot;goods_id&quot;:&quot;135&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xb5][0xb7][0xe9][0xa3][0x9e][0xe4][0xb8][0x9d][0xe4][0xb8][0x9d][0xe8][0xb4][0xa8][0xe6][0x9f][0x94][0xe6][0xbb][0x91][0xe6][0xb4][0x97][0xe5][0x8f][0x91][0xe9][0x9c][0xb2]-[0xe7][0xba][0xa2]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:3830,&quot;goods_id&quot;:&quot;338&quot;},{&quot;goods_name&quot;:&quot;c[0xe7][0xab][0xaf][0xe4][0xba][0xa7][0xe6][0x88][0x90][0xe5][0x93][0x81]01-zjh&quot;,&quot;quantity&quot;:1,&quot;price&quot;:9949,&quot;goods_id&quot;:&quot;105648&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xb3][0xb0][0xe5][0x9b][0xbd][0xe6][0xa4][0xb0][0xe7][0x9a][0x87]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:995,&quot;goods_id&quot;:&quot;137&quot;},{&quot;goods_name&quot;:&quot;[0xe4][0xb8][0x89][0xe7][0xba][0xa2][0xe8][0x9c][0x9c][0xe6][0x9f][0x9a]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:2985,&quot;goods_id&quot;:&quot;100066&quot;},{&quot;goods_name&quot;:&quot;[0xe4][0xbd][0xb3][0xe6][0xb2][0x83][0xe5][0x86][0xbb][0xe6][0xa6][0xb4][0xe8][0x8e][0xb2]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1,&quot;goods_id&quot;:&quot;138&quot;},{&quot;goods_name&quot;:&quot;[0xe7][0xa6][0x8f][0xe5][0xbb][0xba][0xe6][0x9d][0xa8][0xe6][0xa2][0x85]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:995,&quot;goods_id&quot;:&quot;139&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xa8][0xb1][0xe6][0xa1][0x83][0xe6][0xa2][0x85]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1094,&quot;goods_id&quot;:&quot;140&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0xb7][0xa8][0xe5][0xb3][0xb0][0xe8][0x91][0xa1][0xe8][0x90][0x84]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1194,&quot;goods_id&quot;:&quot;141&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0x8b][0x9b][0xe8][0xb4][0xa2][0xe7][0x8c][0xab][0xe5][0x96][0x9c][0xe8][0x8d][0x94]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:47555,&quot;goods_id&quot;:&quot;144&quot;},{&quot;goods_name&quot;:&quot;sll-priceMarket[0xe6][0xb5][0x8b][0xe8][0xaf][0x95]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:995,&quot;goods_id&quot;:&quot;104895&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xa1][0x91][0xe8][0x91][0x9a]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1393,&quot;goods_id&quot;:&quot;136&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0x97][0xa0][0xe7][0xb3][0x96][0xe8][0x8a][0xac][0xe8][0xbe][0xbe][0xe6][0x97][0xa0][0xe7][0xb3][0x96][0xe8][0x8a][0xac][0xe8][0xbe][0xbe][0xe6][0x97][0xa0][0xe7][0xb3][0x96][0xe8][0x8a][0xac][0xe8][0xbe][0xbe][0xe6][0x97][0xa0][0xe7][0xb3][0x96][0xe8][0x8a][0xac][0xe8][0xbe][0xbe][0xe6][0x97][0xa0][0xe7][0xb3][0x96][0xe8][0x8a][0xac][0xe8][0xbe][0xbe]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:398,&quot;goods_id&quot;:&quot;100228&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0xb7][0xb4][0xe9][0xbb][0x8e][0xe6][0xb0][0xb4]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:696,&quot;goods_id&quot;:&quot;100231&quot;},{&quot;goods_name&quot;:&quot;[0xe9][0xb2][0x9c][0xe5][0x88][0x87][0xe6][0xb0][0xb4][0xe6][0x9e][0x9c]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:696,&quot;goods_id&quot;:&quot;60&quot;},{&quot;goods_name&quot;:&quot;[0xe9][0x83][0xbd][0xe4][0xb9][0x90][0xe9][0xa6][0x99][0xe8][0x95][0x89]test&quot;,&quot;quantity&quot;:1,&quot;price&quot;:199,&quot;goods_id&quot;:&quot;7&quot;},{&quot;goods_name&quot;:&quot;[0xe9][0xa6][0x99][0xe8][0x91][0xb1][0xe8][0x96][0x84][0xe8][0x84][0x86][0xe9][0xa5][0xbc] [0xe5][0xa5][0xbd][0xe5][0x91][0xb3][0xe9][0x81][0x93][0xe7][0x9c][0x8b][0xe5][0xbe][0x97][0xe8][0xa7][0x81] [0xe6][0x9c][0x88][0xe9][0x94][0x80][0xe9][0x87][0x8f][0xe9][0x81][0xa5][0xe9][0x81][0xa5][0xe9][0xa2][0x86][0xe5][0x85][0x88]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1791,&quot;goods_id&quot;:&quot;210&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0xb0][0x8f][0xe5][0x90][0xb4][0xe7][0x9a][0x84][0xe6][0xb1][0xa4][0xe8][0xbe][0xbe][0xe4][0xba][0xba][0xe6][0xb5][0xb7][0xe9][0xb2][0x9c][0xe6][0x8b][0x89][0xe9][0x9d][0xa2]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:796,&quot;goods_id&quot;:&quot;105560&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0xb0][0x96][0xe6][0xa4][0x92][0xe8][0x8a][0x92][0xe6][0x9e][0x9c]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:995,&quot;goods_id&quot;:&quot;134&quot;},{&quot;goods_name&quot;:&quot;[0xe9][0x80][0x80][0xe8][0xb4][0xa7][0xe4][0xb8][0x80][0xe9][0x94][0xae][0xe5][0xa4][0x84][0xe7][0x90][0x86][0xe6][0xb5][0x8b][0xe8][0xaf][0x95]10.21&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1,&quot;goods_id&quot;:&quot;100117&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xbb][0x9e][0xe9][0x94][0x80][0xe7][0x9b][0x91][0xe6][0x8e][0xa7]7[0xe6][0x97][0xa5][0xe5][0x9d][0x87][0xe9][0x94][0x80][0xe6][0xb5][0x8b][0xe8][0xaf][0x95]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1,&quot;goods_id&quot;:&quot;100120&quot;},{&quot;goods_name&quot;:&quot;[0xe8][0xb0][0x83][0xe6][0x8b][0xa8][0xe8][0x87][0xaa][0xe5][0x8a][0xa8][0xe5][0x85][0xa5][0xe5][0xba][0x93][0xe6][0xb5][0x8b][0xe8][0xaf][0x95]10.26[0xef][0xbc][0x88][0xe9][0x9d][0x9e][0xe6][0xb0][0xb4][0xe4][0xba][0xa7][0xef][0xbc][0x89]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1,&quot;goods_id&quot;:&quot;100121&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xb2][0x83][0xe6][0x9f][0x91]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1094,&quot;goods_id&quot;:&quot;54&quot;},{&quot;goods_name&quot;:&quot;[0xe9][0xbb][0x91][0xe5][0xb8][0x83][0xe6][0x9e][0x97]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:995,&quot;goods_id&quot;:&quot;142&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0x9c][0xb0][0xe6][0x8e][0xa8][0xe6][0xb5][0xb7][0xe5][0x8d][0x97][0xe5][0x8d][0x83][0xe7][0xa6][0xa7][0xe5][0xb0][0x8f][0xe7][0x95][0xaa][0xe8][0x8c][0x84]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:99,&quot;goods_id&quot;:&quot;47&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0x81][0x92][0xe9][0xa1][0xba][0xe9][0x95][0x87][0xe6][0xb1][0x9f][0xe9][0xa6][0x99][0xe9][0x86][0x8b]([0xe6][0x81][0x92][0xe9][0x95][0x87][0xe9][0xa6][0x99])&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1363,&quot;goods_id&quot;:&quot;100123&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0x96][0xb0][0xe5][0xa5][0x87][0xe5][0xa3][0xab][0xe6][0xa9][0x99]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:2288,&quot;goods_id&quot;:&quot;58&quot;},{&quot;goods_name&quot;:&quot;10.29[0xe7][0xab][0x99][0xe9][0x97][0xb4][0xe8][0xb0][0x83][0xe6][0x8b][0xa8][0xe6][0xb5][0x8b][0xe8][0xaf][0x95]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1,&quot;goods_id&quot;:&quot;100124&quot;},{&quot;goods_name&quot;:&quot;10.29[0xe7][0xab][0x99][0xe9][0x97][0xb4][0xe8][0xb0][0x83][0xe6][0x8b][0xa8][0xe6][0xb5][0x8b][0xe8][0xaf][0x95][0xef][0xbc][0x88][0xe6][0xb0][0xb4][0xe4][0xba][0xa7][0xe7][0xb1][0xbb][0xef][0xbc][0x89]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1,&quot;goods_id&quot;:&quot;100125&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xbe][0xb3][0xe8][0x8a][0x92]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:2089,&quot;goods_id&quot;:&quot;110&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0x9b][0x9b][0xe5][0xb7][0x9d][0xe6][0x98][0xa5][0xe8][0xa7][0x81][0xe7][0xb2][0x91][0xe7][0xb2][0x91][0xe6][0x9f][0x91]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:6666,&quot;goods_id&quot;:&quot;55&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xb0][0xb4][0xe4][0xbb][0x99][0xe8][0x8a][0x92]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1890,&quot;goods_id&quot;:&quot;43&quot;},{&quot;goods_name&quot;:&quot;10.30[0xe6][0xb4][0xbb][0xe9][0xb2][0x9c][0xe8][0xbd][0xac][0xe5][0x8c][0x96][0xe6][0xaf][0x94][0xe4][0xbe][0x8b][0xe6][0xb5][0x8b][0xe8][0xaf][0x95][0xef][0xbc][0x88][0xe6][0xb4][0xbb][0xe9][0xb2][0x9c]A[0xef][0xbc][0x89]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:2388,&quot;goods_id&quot;:&quot;100127&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0x9b][0x9b][0xe5][0xb7][0x9d][0xe4][0xb8][0x8d][0xe7][0x9f][0xa5][0xe7][0x81][0xab][0xe4][0xb8][0x91][0xe6][0x9f][0x91]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1572,&quot;goods_id&quot;:&quot;57&quot;},{&quot;goods_name&quot;:&quot;10.30[0xe6][0xb4][0xbb][0xe9][0xb2][0x9c][0xe8][0xbd][0xac][0xe5][0x8c][0x96][0xe6][0xaf][0x94][0xe4][0xbe][0x8b][0xe6][0xb5][0x8b][0xe8][0xaf][0x95][0xef][0xbc][0x88][0xe5][0x86][0xb0][0xe9][0xb2][0x9c]A[0xef][0xbc][0x89]&quot;,&quot;quantity&quot;:2,&quot;price&quot;:1492,&quot;goods_id&quot;:&quot;100128&quot;},{&quot;goods_name&quot;:&quot;[0xe7][0x8e][0x89][0xe8][0x8f][0x87][0xe7][0x93][0x9c][0xe9][0xb2][0x9c][0xe5][0x88][0x87]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:497,&quot;goods_id&quot;:&quot;64&quot;},{&quot;goods_name&quot;:&quot;10.30[0xe8][0xa7][0x84][0xe6][0xa0][0xbc][0xe8][0xbd][0xac][0xe5][0x8c][0x96][0xe6][0xaf][0x94][0xe4][0xbe][0x8b][0xe6][0xb5][0x8b][0xe8][0xaf][0x95]A&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1,&quot;goods_id&quot;:&quot;100129&quot;},{&quot;goods_name&quot;:&quot;8424[0xe8][0xa5][0xbf][0xe7][0x93][0x9c]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:298,&quot;goods_id&quot;:&quot;170&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0x8f][0xb0][0xe6][0xb9][0xbe][0xe5][0x87][0xa4][0xe6][0xa2][0xa8][0xef][0xbc][0x88][0xe9][0xb2][0x9c][0xe5][0x88][0x87][0xef][0xbc][0x89]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1293,&quot;goods_id&quot;:&quot;63&quot;},{&quot;goods_name&quot;:&quot;10.30[0xe8][0xa7][0x84][0xe6][0xa0][0xbc][0xe8][0xbd][0xac][0xe5][0x8c][0x96][0xe6][0xaf][0x94][0xe4][0xbe][0x8b][0xe6][0xb5][0x8b][0xe8][0xaf][0x95]B&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1,&quot;goods_id&quot;:&quot;100130&quot;},{&quot;goods_name&quot;:&quot;[0xe9][0xb9][0xb0][0xe5][0x98][0xb4][0xe8][0x8a][0x92]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1194,&quot;goods_id&quot;:&quot;143&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0xa4][0x84][0xe7][0x90][0x86][0xe6][0x96][0xb9][0xe5][0xbc][0x8f]tips&quot;,&quot;quantity&quot;:1,&quot;price&quot;:746,&quot;goods_id&quot;:&quot;100392&quot;},{&quot;goods_name&quot;:&quot;[0xe9][0x98][0xb3][0xe5][0x85][0x89][0xe8][0x91][0xa1][0xe8][0x90][0x84]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:2089,&quot;goods_id&quot;:&quot;109&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xb0][0xb4][0xe6][0x9e][0x9c][0xe6][0x8d][0x9e][0xe9][0xb2][0x9c][0xe5][0x88][0x87]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1194,&quot;goods_id&quot;:&quot;62&quot;},{&quot;goods_name&quot;:&quot;cth[0xe8][0xb0][0x83][0xe6][0x8b][0xa8][0xe5][0xb1][0x9e][0xe6][0x80][0xa7][0xe6][0xb5][0x8b][0xe8][0xaf][0x95]-1&quot;,&quot;quantity&quot;:1,&quot;price&quot;:318,&quot;goods_id&quot;:&quot;106101&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0x93][0x88][0xe5][0xaf][0x86][0xe7][0x93][0x9c][0xe9][0xb2][0x9c][0xe5][0x88][0x87]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:497,&quot;goods_id&quot;:&quot;65&quot;},{&quot;goods_name&quot;:&quot;[0xe7][0x81][0xab][0xe9][0xbe][0x99][0xe6][0x9e][0x9c][0xe9][0xb2][0x9c][0xe5][0x88][0x87]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:497,&quot;goods_id&quot;:&quot;66&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0xa5][0xbd][0xe5][0x90][0x83][0xe7][0x9a][0x84][0xe6][0xb0][0xb4][0xe6][0x9e][0x9c][0xef][0xbc][0x88][0xe6][0x96][0xb0][0xe9][0xb2][0x9c][0xe6][0xb0][0xb4][0xe6][0x9e][0x9c][0xef][0xbc][0x89]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1094,&quot;goods_id&quot;:&quot;100275&quot;},{&quot;goods_name&quot;:&quot;[0xe5][0xa5][0xbd][0xe5][0x90][0x83][0xe7][0x9a][0x84][0xe6][0xb0][0xb4][0xe6][0x9e][0x9c]2[0xef][0xbc][0x88][0xe6][0x96][0xb0][0xe9][0xb2][0x9c][0xe6][0xb0][0xb4][0xe6][0x9e][0x9c][0xef][0xbc][0x89]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:1,&quot;goods_id&quot;:&quot;100276&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0xaf][0x8f][0xe6][0x97][0xa5][0xe6][0x9e][0x9c][0xe8][0x94][0xac][0xe7][0xbb][0x84][0xe5][0x90][0x88]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:696,&quot;goods_id&quot;:&quot;61&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0x96][0xb0][0xe8][0x83][0x96]002&quot;,&quot;quantity&quot;:1,&quot;price&quot;:438,&quot;goods_id&quot;:&quot;104828&quot;},{&quot;goods_name&quot;:&quot;[0xe6][0x96][0xb0][0xe8][0x83][0x96]003&quot;,&quot;quantity&quot;:1,&quot;price&quot;:99,&quot;goods_id&quot;:&quot;104829&quot;},{&quot;goods_name&quot;:&quot;[0xe7][0x83][0xad][0xe5][0x86][0x9c][0xe8][0x8a][0x92][0xe6][0x9e][0x9c]&quot;,&quot;quantity&quot;:1,&quot;price&quot;:950,&quot;goods_id&quot;:&quot;317&quot;}]}</detail>[\n]"

2023-01-03 15:34:15,647 DEBUG [main] - http-outgoing-0 >> "</xml>"

2023-01-03 15:34:15,713 DEBUG [main] - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"

2023-01-03 15:34:15,713 DEBUG [main] - http-outgoing-0 << "Server: nginx[\r][\n]"

2023-01-03 15:34:15,713 DEBUG [main] - http-outgoing-0 << "Date: Tue, 03 Jan 2023 07:34:15 GMT[\r][\n]"

2023-01-03 15:34:15,713 DEBUG [main] - http-outgoing-0 << "Content-Type: text/plain[\r][\n]"

2023-01-03 15:34:15,713 DEBUG [main] - http-outgoing-0 << "Content-Length: 107[\r][\n]"

2023-01-03 15:34:15,713 DEBUG [main] - http-outgoing-0 << "Connection: keep-alive[\r][\n]"

2023-01-03 15:34:15,713 DEBUG [main] - http-outgoing-0 << "Keep-Alive: timeout=8[\r][\n]"

2023-01-03 15:34:15,713 DEBUG [main] - http-outgoing-0 << "Request-ID: 08F7B4CF9D0610BB0518A0D28C5820ABFB0728B9B403-44002[\r][\n]"

2023-01-03 15:34:15,713 DEBUG [main] - http-outgoing-0 << "[\r][\n]"

2023-01-03 15:34:15,713 DEBUG [main] - http-outgoing-0 << "<xml><return_code><![CDATA[FAIL]]></return_code><return_msg><![CDATA[post[0xe6][0x95][0xb0][0xe6][0x8d][0xae][0xe4][0xb8][0xba][0xe7][0xa9][0xba]]]></return_msg></xml>"

2023-01-03 15:34:15,715 DEBUG [main] - http-outgoing-0 << HTTP/1.1 200 OK

2023-01-03 15:34:15,715 DEBUG [main] - http-outgoing-0 << Server: nginx

2023-01-03 15:34:15,715 DEBUG [main] - http-outgoing-0 << Date: Tue, 03 Jan 2023 07:34:15 GMT

2023-01-03 15:34:15,715 DEBUG [main] - http-outgoing-0 << Content-Type: text/plain

2023-01-03 15:34:15,715 DEBUG [main] - http-outgoing-0 << Content-Length: 107

2023-01-03 15:34:15,716 DEBUG [main] - http-outgoing-0 << Connection: keep-alive

2023-01-03 15:34:15,716 DEBUG [main] - http-outgoing-0 << Keep-Alive: timeout=8

2023-01-03 15:34:15,716 DEBUG [main] - http-outgoing-0 << Request-ID: 08F7B4CF9D0610BB0518A0D28C5820ABFB0728B9B403-44002

2023-01-03 15:34:15,719 DEBUG [main] - Connection can be kept alive for 8000 MILLISECONDS

2023-01-03 15:34:15,723 DEBUG [main] - Connection [id: 0][route: {s}->https://api.mch.weixin.qq.com:443] can be kept alive for 8.0 seconds

2023-01-03 15:34:15,723 DEBUG [main] - Connection released: [id: 0][route: {s}->https://api.mch.weixin.qq.com:443][total kept alive: 1; route allocated: 1 of 100; total allocated: 1 of 200]

<xml><return_code><![CDATA[FAIL]]></return_code><return_msg><![CDATA[post数据为空]]></return_msg></xml>

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

1 个回答

  • Memory
    Memory
    2023-01-09

    请求的XML用postman可以请求成功么?

    2023-01-09
    有用 1
    回复
登录 后发表内容