Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
ad8aebb2
Commit
ad8aebb2
authored
Dec 14, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
74c0f393
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
OrderConfirmUtil.php
application/library/Order/OrderConfirmUtil.php
+0
-2
PaymentService.php
application/models/Business/Order/PaymentService.php
+0
-4
No files found.
application/library/Order/OrderConfirmUtil.php
View file @
ad8aebb2
...
...
@@ -1133,9 +1133,7 @@ class OrderConfirmUtil {
return
array
(
'flag'
=>
\Our\ApiConst
::
zero
,
'errorCode'
=>
$errorCode
,
'data'
=>
$data
);
}
$oldOrderPay
=
$orderPayModel
->
find
(
array
(
'pay_sn'
=>
$paySn
));
\Our\Log
::
getInstance
()
->
write
(
json_encode
(
$oldOrderPay
),
'/data/log/apptest'
);
if
(
$oldOrderPay
[
'api_pay_state'
]
==
\Our\ApiConst
::
one
){
\Our\Log
::
getInstance
()
->
write
(
'testaldeary'
,
'/data/log/apptest'
);
return
array
(
'flag'
=>
\Our\ApiConst
::
one
,
'errorCode'
=>
$errorCode
);
}
$resultOrderPay
=
$orderPayModel
->
update
(
array
(
'api_pay_state'
=>
\Our\ApiConst
::
one
,
'pay_type'
=>
$data
[
'pay_type'
]),
array
(
'pay_sn'
=>
$paySn
));
...
...
application/models/Business/Order/PaymentService.php
View file @
ad8aebb2
...
...
@@ -58,7 +58,6 @@ class PaymentServiceModel extends \Business\AbstractModel{
* app微信支付回调
*/
public
function
updateOrderToPayed
(
$channel
=
\Our\NameConst
::
wxAppChannel
){
\Our\Log
::
getInstance
()
->
write
(
microtime
(),
'/data/log/apptest'
);
if
(
$channel
==
\Our\NameConst
::
wxLiteChannel
){
$wxpay
=
\Payment\WxLitePay
::
getInstance
();
$param
[
'pay_type'
]
=
\Our\ApiConst
::
wxLitePayType
;
...
...
@@ -75,9 +74,6 @@ class PaymentServiceModel extends \Business\AbstractModel{
$param
[
'paySn'
]
=
$callbackInfo
[
'out_trade_no'
];
$orderConfirmUtil
=
\Order\OrderConfirmUtil
::
getInstance
();
$return
=
$orderConfirmUtil
->
updateOrderToPayed
(
$param
);
\Our\Log
::
getInstance
()
->
write
(
json_encode
(
$return
),
'/data/log/apptest'
);
\Our\Log
::
getInstance
()
->
write
(
microtime
(),
'/data/log/apptest'
);
\Our\Log
::
getInstance
()
->
write
(
json_encode
(
$callbackInfo
),
'/data/log/apptest'
);
if
(
$return
[
'flag'
])
{
echo
$callbackInfo
[
'returnXml'
];
die
;
...
...
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