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
ba7a12e4
Commit
ba7a12e4
authored
Nov 09, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序支付
parent
e6a862b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
TencentPay.php
application/library/Payment/TencentPay.php
+2
-3
No files found.
application/library/Payment/TencentPay.php
View file @
ba7a12e4
...
...
@@ -60,7 +60,7 @@ class TencentPay {
$total_fee
=
$orderInfo
[
'orderAmount'
];
$this
->
parameters
[
'appid'
]
=
$this
->
s_appid
;
$this
->
parameters
[
'mch_id'
]
=
$this
->
s_mch_id
;
$this
->
parameters
[
'sub_appid'
]
=
$this
->
s_
appid
;
$this
->
parameters
[
'sub_appid'
]
=
$this
->
appid
;
$this
->
parameters
[
'sub_mch_id'
]
=
$orderInfo
[
'subMchId'
];
$this
->
parameters
[
'nonce_str'
]
=
\Our\CommonExtension
::
createNoncestr
(
32
);
$this
->
parameters
[
'body'
]
=
'订单号:'
.
implode
(
','
,
$orderInfo
[
'orderSns'
]);
...
...
@@ -73,7 +73,7 @@ class TencentPay {
$this
->
parameters
[
'total_fee'
]
=
$total_fee
;
}
if
(
isset
(
$orderInfo
[
'openid'
])
&&
$orderInfo
[
'openid'
]){
$this
->
parameters
[
'openid'
]
=
$orderInfo
[
'openid'
];
$this
->
parameters
[
'
sub_
openid'
]
=
$orderInfo
[
'openid'
];
}
$this
->
parameters
[
'spbill_create_ip'
]
=
\Our\Common
::
getClientIp
();
$this
->
parameters
[
'notify_url'
]
=
$this
->
notify_url
;
...
...
@@ -122,7 +122,6 @@ class TencentPay {
{
$xml
=
$this
->
createXml
();
$this
->
response
=
$this
->
postXmlCurl
(
$xml
,
$this
->
pay_url
,
$this
->
curl_timeout
);
print_r
(
$this
->
response
);
return
$this
->
response
;
}
...
...
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