收藏
回答

微信支付V3 请求不到回调地址 日志无打印?

微信支付单:wx2410302929308730612cb2b36d2e8c0000

回调地址:https://bearwind.com/api/wxpay/notify/order公网可访问

微信支付端配置: https://bearwind.com/api/wxpay/notify/order/ , https://bearwind.com/

和系统配置的回调地址一致

拦截策略:无

在接受到请求直接打印日志,无业务特殊处理 但是看到日志

最后一次编辑于  2021-06-24
回答关注问题邀请回答
收藏

1 个回答

  • 北望沣渭
    北望沣渭
    2021-06-24
    curl -X POST 'https://bearwind.com/api/wxpay/notify/order' -v
    


    先试着自己找一下服务器异常日志的再来反馈吧

    *   Trying 116.62.231.224...
    * TCP_NODELAY set
    * Connected to bearwind.com (116.62.231.224) port 443 (#0)
    * ALPN, offering h2
    * ALPN, offering http/1.1
    * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
    * successfully set certificate verify locations:
    *   CAfile: /etc/ssl/cert.pem
      CApath: none
    * TLSv1.2 (OUT), TLS handshake, Client hello (1):
    * TLSv1.2 (IN), TLS handshake, Server hello (2):
    * TLSv1.2 (IN), TLS handshake, Certificate (11):
    * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
    * TLSv1.2 (IN), TLS handshake, Server finished (14):
    * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
    * TLSv1.2 (OUT), TLS change cipher, Client hello (1):
    * TLSv1.2 (OUT), TLS handshake, Finished (20):
    * TLSv1.2 (IN), TLS change cipher, Client hello (1):
    * TLSv1.2 (IN), TLS handshake, Finished (20):
    * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
    * ALPN, server accepted to use http/1.1
    * Server certificate:
    *  subject: CN=www.bearwind.com
    *  start date: Feb 20 00:00:00 2021 GMT
    *  expire date: Feb 20 23:59:59 2022 GMT
    *  subjectAltName: host "bearwind.com" matched cert's "bearwind.com"
    *  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=Encryption Everywhere DV TLS CA - G1
    *  SSL certificate verify ok.
    > POST /api/wxpay/notify/order HTTP/1.1
    > Host: bearwind.com
    > User-Agent: curl/7.54.0
    > Accept: */*
    >
    < HTTP/1.1 200
    < Server: nginx/1.16.1
    < Date: Thu, 24 Jun 2021 03:41:08 GMT
    < Content-Type: application/json
    < Transfer-Encoding: chunked
    < Connection: keep-alive
    <
    * Connection #0 to host bearwind.com left intact
    {"code":500,"msg":"Server internal exception","data":null}
    
    2021-06-24
    有用 1
    回复 1
    • LYF
      LYF
      2021-06-24
      谢谢大佬 回调地址写错了 直接请求项目配置地址了 未被nginx转发
      2021-06-24
      回复
登录 后发表内容