切换导航条
此项目
正在载入...
登录
景龙
/
feipin
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
景龙
6 years ago
提交
d0c5bcb4e98f6e13a5a721f98cf9418409f78772
1 个父辈
2a65233a
1 个管道 的构建
失败
耗费 0 秒
调试支付
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
application/api/controller/Wxpay.php
application/api/controller/Wxpay.php
查看文件 @
d0c5bcb
...
...
@@ -74,8 +74,8 @@ class Wxpay extends Api
'total_fee'
=>
1
,
//'total_fee' => floatval($total_price)*100,//单位:分
'openid'
=>
$openid
,
'notify_url'
=>
'http://feipin.w.brotop.cn/api/Wxpay/notify'
,
'return_url'
=>
'http://feipin.w.brotop.cn/api/Wxpay/wechatReturn'
,
'notify_url'
=>
$this
->
request
->
root
(
true
)
.
'/api/Wxpay/notify'
,
'return_url'
=>
$this
->
request
->
root
(
true
)
.
'/api/Wxpay/wechatReturn'
,
];
//跳转或输出
$this
->
success
(
'成功'
,
$pay
->
miniapp
(
$order
));
...
...
@@ -90,7 +90,6 @@ class Wxpay extends Api
*/
public
function
notify
(){
$pay
=
Service
::
checkNotify
(
'wechat'
);
Log
::
record
(
'test'
,
'info'
);
if
(
!
$pay
)
{
$this
->
error
(
'签名错误'
);
}
...
...
请
注册
或
登录
后发表评论