tmkook
0.51D
V2EX  ›  PHP

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

  •  
  •   tmkook ·
    PRO
    · Oct 11, 2016 · 3555 views
    This topic created in 3681 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
    BMW
    Oct 11, 2016❤️1
    1
    那就是你 route 配置问题了
    llyx
    llyx
    Oct 11, 2016❤️1
    2
    微信那边通知过来是用 post 的
    pubby
    pubby
    Oct 11, 2016 via Android❤️1
    3
    莫非是用内网地址测试?
    tmkook
    tmkook
    OP
    PRO
    Oct 11, 2016
    4
    @llyx 查了日志确实是 POST ,但是进不去 Slim 的 post 路由提示 404 了不知道什么情况。

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

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