Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
9 years ago
Commit
5c154d00c1cfc50dbb58a80024f7e78578cdb05f
1 parent
8ba2647c
改版前支付宝 添加日志
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
yohobuy/www.yohobuy.com/application/modules/Pay/controllers/Notice.php
yohobuy/www.yohobuy.com/application/modules/Pay/controllers/Notice.php
View file @
5c154d0
...
...
@@ -5,7 +5,7 @@ use Shopping\PayModel;
use
WebPlugin\Pay\PayFactory
;
use
WebPlugin\Pay\Rspparams
;
use
WebPlugin\Pay\weixin\PayNotifyCallBack
;
use
WebPlugin\UdpLog
;
/**
* 支付Notice
*/
...
...
@@ -24,6 +24,7 @@ class NoticeController extends WebAction
public
function
alipaynoticeAction
()
{
$res
=
$this
->
getParseResponse
(
$_POST
,
2
);
UdpLog
::
info
(
"【支付宝异步】,function:alipaynoticeAction,参数"
,
array
(
'pars'
=>
$_POST
,
'res'
=>
$res
));
if
(
$res
->
payResult
!=
-
1
)
{
$this
->
payResultProc
(
$res
,
2
);
echo
"success"
;
...
...
@@ -37,6 +38,7 @@ class NoticeController extends WebAction
public
function
alipayreturnAction
()
{
$res
=
$this
->
getParseResponse
(
$_GET
,
2
);
UdpLog
::
info
(
"【支付宝同步】,function:alipayreturnAction,参数"
,
array
(
'pars'
=>
$_GET
,
'res'
=>
$res
));
$dealResult
=
$this
->
payResultProc
(
$res
,
2
);
$dealResult
[
'payData'
]
=
array
(
'payWay'
=>
'支付宝'
);
$this
->
commonShowResult
(
$dealResult
);
...
...
@@ -48,6 +50,7 @@ class NoticeController extends WebAction
public
function
alibarcodenoticeAction
()
{
$res
=
$this
->
getParseResponse
(
$_POST
,
17
);
UdpLog
::
info
(
"【支付宝二维码支付异步】,function:alibarcodenoticeAction,参数"
,
array
(
'pars'
=>
$_POST
,
'res'
=>
$res
));
if
(
$res
->
payResult
!=
-
1
)
{
$this
->
payResultProc
(
$res
,
17
);
echo
"success"
;
...
...
@@ -61,6 +64,7 @@ class NoticeController extends WebAction
public
function
alibarcodereturnAction
()
{
$res
=
$this
->
getParseResponse
(
$_GET
,
17
);
UdpLog
::
info
(
"【支付宝二维码支付同步】,function:alibarcodereturnAction,参数"
,
array
(
'pars'
=>
$_GET
,
'res'
=>
$res
));
$dealResult
=
$this
->
payResultProc
(
$res
,
17
);
$dealResult
[
'payData'
]
=
array
(
'payWay'
=>
'支付宝'
);
$this
->
commonShowResult
(
$dealResult
);
...
...
@@ -225,6 +229,7 @@ class NoticeController extends WebAction
$uid
=
$this
->
getSession
(
self
::
SESSION_UID_KEY
);
$this
->
setSession
(
self
::
SESSION_UID_KEY
,
null
);
}
UdpLog
::
info
(
"【微信扫码支付结果商户通知地址】,function:wechatqrcodenotifyAction"
);
$notify
=
new
PayNotifyCallBack
(
$uid
);
$notify
->
handle
(
false
);
}
...
...
@@ -248,6 +253,7 @@ class NoticeController extends WebAction
$payment
=
PayModel
::
getPaymentById
(
21
);
$payService
=
PayFactory
::
factory
(
$payment
);
$res
=
$payService
->
parseResponse
(
array
(
'orderCode'
=>
$orderCode
));
UdpLog
::
info
(
"【微信扫码支付返回】,function:wechatqrcodereturnAction,参数"
,
array
(
'pars'
=>
$_GET
,
'res'
=>
$res
));
$dealResult
=
$this
->
payResultProc
(
$res
,
21
);
$dealResult
[
'payData'
]
=
array
(
'payWay'
=>
'微信扫码支付'
);
}
while
(
false
);
...
...
Please
register
or
login
to post a comment