收藏
回答

wechatpay-php 微信支付SDK请求

curl_setopt_array(): cannot represent a stream of type Output as a STDIO FILE*

线上(linux)正常,线下(windows)报错

PHP:PHP 8.0
- Laravel 9.12.1


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

1 个回答

  • 北望沣渭
    北望沣渭
    2022-11-09

    windows 上,没有 stdout/stderr 文件句柄,请把 'debug' => true 拿掉试试

    2022-11-09
    有用 1
    回复 3
    • dylan2
      dylan2
      2022-11-09
      可以了,大哥有你真好;为啥我的商户进件返回空呢
      2022-11-09
      回复
    • dylan2
      dylan2
      2022-11-09
      我故意没有输入全部参数,应该给我返回报错什么的,结果什么都没有哇
      2022-11-09
      回复
    • 北望沣渭
      北望沣渭
      2022-11-09回复dylan2
      用 try catch 语句把你的 $resp 包起来,出错能捕获住,看文档抄。。。
      2022-11-09
      1
      回复
登录 后发表内容