V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
tmkook
0.51D
V2EX  ›  PHP

PHP Slim 框架接收微信支付 notify 用什么 route?

  •  
  •   tmkook ·
    PRO
    · Oct 11, 2016 · 3085 views
    This topic created in 3494 days ago, the information mentioned may be changed or developed.
    试过 post/put/any 都无法进入 route ,只能移到 public 吗?
    Supplement 1  ·  Oct 11, 2016
    设置回调地址写的是 wecaht 路由写的是 wechat 。确实是低级错误,调试了几个小时要不是查了日志到现在还发现不了问题,帮同事填的坑。
    7 replies    2016-10-11 13:26:40 +08:00
    BMW
        1
    BMW  
       Oct 11, 2016   ❤️ 1
    那就是你 route 配置问题了
    llyx
        2
    llyx  
       Oct 11, 2016   ❤️ 1
    微信那边通知过来是用 post 的
    pubby
        3
    pubby  
       Oct 11, 2016 via Android   ❤️ 1
    莫非是用内网地址测试?
    tmkook
        4
    tmkook  
    OP
    PRO
       Oct 11, 2016
    @llyx 查了日志确实是 POST ,但是进不去 Slim 的 post 路由提示 404 了不知道什么情况。

    POST /wecaht/notify HTTP/1.0" 404 880 "-" "Mozilla/4.0"
    justfindu
        5
    justfindu  
       Oct 11, 2016   ❤️ 1
    wecaht!!!

    拼写错了啵
    BMW
        6
    BMW  
       Oct 11, 2016
    edsgerlin
        7
    edsgerlin  
       Oct 11, 2016 via Android   ❤️ 1
    @justfindu haha ,事实证明有时候学好英语很重要~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   895 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 21:44 · PVG 05:44 · LAX 14:44 · JFK 17:44
    ♥ Do have faith in what you're doing.