切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
lihan
6 years ago
提交
5419d8571d20afec2e4e6201a6905a169dd94eeb
1 个父辈
fe1ecac8
1 个管道 的构建
通过
耗费 0 秒
确认收货
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
6 行增加
和
3 行删除
app/cart/controller/ZjCartController.php
app/pay/controller/PayController.php
app/cart/controller/ZjCartController.php
查看文件 @
5419d85
...
...
@@ -178,7 +178,6 @@ class ZjCartController extends HomeBaseController
}
else
{
$attach
=
''
;
}
print_r
(
$attach
);
return
$this
->
fetch
(
'order_confirm'
,
[
'data'
=>
$data
,
'address'
=>
$address
,
...
...
app/pay/controller/PayController.php
查看文件 @
5419d85
...
...
@@ -54,7 +54,7 @@ class PayController extends HomeBaseController
'remark'
=>
$request
->
param
(
'remark'
),
'create_time'
=>
time
(),
'whole'
=>
$whole
,
'whole_num'
=>
0
,
'whole_num'
=>
$whole_num
,
'pay_type'
=>
$request
->
param
(
'pay_type'
),
'step'
=>
1
];
...
...
@@ -155,11 +155,15 @@ class PayController extends HomeBaseController
$request
=
request
();
if
(
$request
->
isAjax
())
{
$oid
=
$request
->
param
(
'oid'
);
$total_fee
=
Db
::
name
(
'zj_order'
)
->
where
([
'id'
=>
$oid
])
->
value
(
'whole'
);
if
(
Db
::
name
(
'zj_order'
)
->
where
([
'id'
=>
$oid
])
->
value
(
'pay_type'
)
==
2
)
{
$total_fee
-=
Db
::
name
(
'zj_order'
)
->
where
([
'id'
=>
$oid
])
->
value
(
'whole_num'
);
}
$info
=
[
'attach'
=>
$oid
,
'openid'
=>
session
(
'user.openid'
),
'body'
=>
'微信支付-天生红商城'
,
'total_fee'
=>
Db
::
name
(
'zj_order'
)
->
where
([
'id'
=>
$oid
])
->
value
(
'whole'
)
'total_fee'
=>
$total_fee
];
$this
->
wxPay
(
$info
);
}
...
...
请
注册
或
登录
后发表评论