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
d3675c66
Commit
d3675c66
authored
Sep 04, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序微信支付缺少openid
parent
84850ca1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Pay.php
application/library/Payment/Pay.php
+3
-0
TencentPay.php
application/library/Payment/TencentPay.php
+3
-1
No files found.
application/library/Payment/Pay.php
View file @
d3675c66
...
...
@@ -34,6 +34,9 @@ class Pay {
$alipay
=
Alipay
::
getInstance
();
$return
=
$alipay
->
doPay
(
$orderInfo
);
}
else
if
(
$data
[
'channel'
]
==
\Our\NameConst
::
wxLiteChannel
){
$sess
=
\Yaf\Session
::
getInstance
();
$authInfo
=
$sess
->
get
(
'wxAuthInfo'
);
$orderInfo
[
'openid'
]
=
$authInfo
[
'openid'
];
$wxLitePay
=
WxLitePay
::
getInstance
();
$return
=
$wxLitePay
->
doPay
(
$orderInfo
);
}
else
if
(
$data
[
'channel'
]
==
\Our\NameConst
::
qqAppChannel
){
...
...
application/library/Payment/TencentPay.php
View file @
d3675c66
...
...
@@ -39,7 +39,9 @@ class TencentPay {
}
else
{
$this
->
parameters
[
'total_fee'
]
=
$total_fee
;
}
if
(
isset
(
$orderInfo
[
'openid'
])
&&
$orderInfo
[
'openid'
]){
$this
->
parameters
[
'openid'
]
=
$orderInfo
[
'openid'
];
}
$this
->
parameters
[
'spbill_create_ip'
]
=
\Our\Common
::
getClientIp
();
$this
->
parameters
[
'notify_url'
]
=
$this
->
notify_url
;
$this
->
parameters
[
'trade_type'
]
=
$this
->
tradeType
;
...
...
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