Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
quxiu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
quxiu
Commits
3d1dfd7a
Commit
3d1dfd7a
authored
Apr 24, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
da7cdfd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
wxpay/pay/jsapi-wx.php
+2
-2
wxpay/pay/notify_jsapi.php
+1
-1
No files found.
wxpay/pay/jsapi-wx.php
View file @
3d1dfd7a
...
...
@@ -43,8 +43,8 @@ $input->SetNotify_url('http://'.$_SERVER['HTTP_HOST'].'/wxpay/pay/notify_jsapi.p
$input
->
SetTrade_type
(
"JSAPI"
);
$input
->
SetOpenid
(
$openId
);
$order
=
WxPayApi
::
unifiedOrder
(
$input
);
echo
'<font color="#f00"><b>统一下单支付单信息</b></font><br/>'
;
printf_info
(
$order
);
//
echo '<font color="#f00"><b>统一下单支付单信息</b></font><br/>';
//
printf_info($order);
$jsApiParameters
=
$tools
->
GetJsApiParameters
(
$order
);
...
...
wxpay/pay/notify_jsapi.php
View file @
3d1dfd7a
...
...
@@ -62,7 +62,7 @@ class PayNotifyCallBack extends WxPayNotify
$coin
=
$row
[
'coin'
]
+
$row
[
'coin_give'
];
$link
->
query
(
"update cmf_users set coin=coin+
{
$coin
}
where id='
$row[touid]
'"
);
$link
->
query
(
"update cmf_users_charge set status='1',trade_no='
{
$transaction_id
}
' where id=
{
$row
[
'id'
]
}
"
);
share
(
$link
,
$row
[
'touid'
],
$coin
);
$this
->
share
(
$link
,
$row
[
'touid'
],
$coin
);
Log
::
DEBUG
(
"支付成功"
);
}
else
{
Log
::
DEBUG
(
$out_trade_no
.
' 订单信息不存在'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment