Giter VIP home page Giter VIP logo

Comments (5)

latrell avatar latrell commented on June 5, 2024

&not 直接输出,是会变成 ¬ 的,因为它跟   一样,是HTML预定义字符。
根据你的描述,我无法定位问题,能更详细一点吗?比如提供可以重现的例子。

from alipay.

frozencandy avatar frozencandy commented on June 5, 2024

情况和个人解决步骤如下:
1 安装该sdk,配置
2 app('alipay.mobile')生成支付字串、将字串交给ios/安卓
3 ios/安卓支付成功,手机收到成功消息,但服务器一直没收到,接口没有被调用迹象
4 手动调用接口,查看路由配置,无发现问题,能正常记录接口访问日志
5 将生成的支付字串进行urldecode,发现
input_charset=utf-8&notify_url=http 被转成了
_input_charset=utf-8¬ify_url=http
6 怀疑是此问题,将
return $this->createLinkstringUrlencode($para);
改为
unset($para['notify_url']);
return 'notify_url=' . urlencode($this->notify_url) . '&' . $this->createLinkstringUrlencode($para);
7 重新生成支付字串,将字串交给ios/安卓
8 支付,成功收到通知

不知是不是我这里个人的个别现象

from alipay.

latrell avatar latrell commented on June 5, 2024

第5点,将生成的支付字串进行urldecode后,你是如何打印出来的呢,因为浏览器会将&not显示为¬,如果你是直接在页面上看打印结果,确实是会这样,右键页面查看源代码,是否也是如此呢?

from alipay.

IvanJobs avatar IvanJobs commented on June 5, 2024

没有太深入的研究你说的这个过程,但是以前开发过程中确实遇到过类似的情况,不过是在PC Web端,当时也发现了异常的编码字符。最终找到的原因是:异常的编码字符没有什么问题,本身就是这样,只不过在不同模式下显示的不一样而已,实际传输的还是那个编码,接受不到通知是因为配置的通知URL没有加http前缀。 希望对你有所帮助,上面是我的个人经验。

from alipay.

latrell avatar latrell commented on June 5, 2024

没有带 http 前缀确实是一个坑。

from alipay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.