golang
廉颇不封刀
这个作者很懒,什么都没留下…
展开
-
前后端分离获取不到用户真实IP
后端接口内获取的只能是127.0.0.1最后从web服务器上处理 location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forw原创 2021-09-10 22:56:41 · 722 阅读 · 0 评论 -
golang APP支付的代码总结
使用的包:github.com/iGoogle-ink/gopay前端用的uniapp文档地址:https://uniapp.dcloud.io/api/plugins/payment//上面是根据订单ID获取订单的一些基础数据....client := wechat.NewClient("微信开放平台申请的移动应用APPid", "商户ID", "商户APIkey", true) //设置国家 client.SetCountry(wechat.China) //初始化.原创 2021-08-28 13:21:22 · 720 阅读 · 0 评论