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
95161b5f
Commit
95161b5f
authored
Feb 20, 2021
by
蔡闯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付测试
parent
44290a57
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
app/api/controller/Payorder.php
app/api/controller/Payorder.php
+1
-0
app/api/controller/Payreturn.php
app/api/controller/Payreturn.php
+2
-2
public/log.text
public/log.text
+1
-0
No files found.
app/api/controller/Payorder.php
View file @
95161b5f
...
...
@@ -12,6 +12,7 @@ class Payorder extends Base
{
//业主所有房间下的未缴费的水电物业等,只有业主才能看到记录
public
function
payList
()
{
//获取是业主身份的房间
$vacancys
=
Db
::
name
(
'house_user_bind'
)
->
alias
(
'hub'
)
->
leftJoin
(
'house_vacancy hv'
,
'hv.vacancy_id = hub.vacancy_id'
)
...
...
app/api/controller/Payreturn.php
View file @
95161b5f
...
...
@@ -11,15 +11,15 @@ class Payreturn extends BaseController
{
//支付宝支付成功后的异步通知地址
public
function
aliPayReturn
()
{
file_put_contents
(
'./log.text'
,
"支付测试--1"
,
FILE_APPEND
);
require_once
"../extend/aliPay/AopClient.php"
;
//生成日志
$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
);
if
(
$flag
){
if
(
$this
->
changePayStatus
(
$_POST
[
'out_trade_no'
])){
die
(
'success'
);
...
...
public/log.text
0 → 100644
View file @
95161b5f
支付测试--1
\ 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