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
bff409f8
Commit
bff409f8
authored
Feb 20, 2021
by
蔡闯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7cf49b29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
app/api/controller/Payreturn.php
app/api/controller/Payreturn.php
+6
-6
public/log.txt
public/log.txt
+1
-1
No files found.
app/api/controller/Payreturn.php
View file @
bff409f8
...
...
@@ -14,21 +14,21 @@ class Payreturn extends BaseController
require_once
"../extend/aliPay/AopClient.php"
;
//生成日志
file_put_contents
(
'./log.txt'
,
'1'
,
FILE_APPEND
);
$this
->
createPayLog
(
$_POST
,
"支付宝"
);
file_put_contents
(
'./log.txt'
,
'2'
,
FILE_APPEND
);
$this
->
createPayLog
(
$_POST
,
"支付宝"
);
exit
;
$aop
=
new
\AopClient
();
$public_key
=
config
(
'app.pay_alipay_public_key'
);
$aop
->
alipayrsaPublicKey
=
$public_key
;
$flag
=
$aop
->
rsaCheckV1
(
$_POST
,
NULL
,
"RSA2"
);
file_put_contents
(
'./log.txt'
,
'3'
,
FILE_APPEND
);
if
(
$flag
){
file_put_contents
(
'./log.txt'
,
'4'
,
FILE_APPEND
);
if
(
$this
->
changePayStatus
(
$_POST
[
'out_trade_no'
])){
die
(
'success'
);
}
}
file_put_contents
(
'./log.txt'
,
'5'
,
FILE_APPEND
);
die
(
'fail'
);
}
...
...
public/log.txt
View file @
bff409f8
https://localhost/upload/
\ No newline at end of file
https://localhost/upload/12351235
\ No newline at end of file
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