Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
ruer_cms
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蔡闯
ruer_cms
Commits
74f256bb
Commit
74f256bb
authored
Feb 20, 2021
by
蔡闯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付回调侧测试
parent
95161b5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
app/api/controller/Payreturn.php
app/api/controller/Payreturn.php
+5
-1
No files found.
app/api/controller/Payreturn.php
View file @
74f256bb
...
...
@@ -14,17 +14,21 @@ class Payreturn extends BaseController
require_once
"../extend/aliPay/AopClient.php"
;
//生成日志
file_put_contents
(
'./log.text'
,
'1'
,
FILE_APPEND
);
$this
->
createPayLog
(
$_POST
,
"支付宝"
);
file_put_contents
(
'./log.text'
,
'2'
,
FILE_APPEND
);
$aop
=
new
\AopClient
();
$public_key
=
config
(
'app.pay_alipay_public_key'
);
$aop
->
alipayrsaPublicKey
=
$public_key
;
$flag
=
$aop
->
rsaCheckV1
(
$_POST
,
NULL
,
"RSA2"
);
var_dump
(
$flag
);
file_put_contents
(
'./log.text'
,
'3'
,
FILE_APPEND
);
if
(
$flag
){
file_put_contents
(
'./log.text'
,
'4'
,
FILE_APPEND
);
if
(
$this
->
changePayStatus
(
$_POST
[
'out_trade_no'
])){
die
(
'success'
);
}
}
file_put_contents
(
'./log.text'
,
'5'
,
FILE_APPEND
);
die
(
'fail'
);
}
...
...
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