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
4891f975
Commit
4891f975
authored
Sep 03, 2018
by
zhz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into master_dev
parents
91c2a79c
a493902e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Pay.php
application/library/Payment/Pay.php
+3
-0
TencentPay.php
application/library/Payment/TencentPay.php
+3
-2
No files found.
application/library/Payment/Pay.php
View file @
4891f975
...
@@ -34,6 +34,9 @@ class Pay {
...
@@ -34,6 +34,9 @@ class Pay {
$alipay
=
Alipay
::
getInstance
();
$alipay
=
Alipay
::
getInstance
();
$return
=
$alipay
->
doPay
(
$orderInfo
);
$return
=
$alipay
->
doPay
(
$orderInfo
);
}
else
if
(
$data
[
'channel'
]
==
\Our\NameConst
::
wxLiteChannel
){
}
else
if
(
$data
[
'channel'
]
==
\Our\NameConst
::
wxLiteChannel
){
$sess
=
\Yaf\Session
::
getInstance
();
$authInfo
=
$sess
->
get
(
'wxAuthInfo'
);
$orderInfo
[
'openid'
]
=
$authInfo
[
'openid'
];
$wxLitePay
=
WxLitePay
::
getInstance
();
$wxLitePay
=
WxLitePay
::
getInstance
();
$return
=
$wxLitePay
->
doPay
(
$orderInfo
);
$return
=
$wxLitePay
->
doPay
(
$orderInfo
);
}
else
if
(
$data
[
'channel'
]
==
\Our\NameConst
::
qqAppChannel
){
}
else
if
(
$data
[
'channel'
]
==
\Our\NameConst
::
qqAppChannel
){
...
...
application/library/Payment/TencentPay.php
View file @
4891f975
...
@@ -39,7 +39,9 @@ class TencentPay {
...
@@ -39,7 +39,9 @@ class TencentPay {
}
else
{
}
else
{
$this
->
parameters
[
'total_fee'
]
=
$total_fee
;
$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
[
'spbill_create_ip'
]
=
\Our\Common
::
getClientIp
();
$this
->
parameters
[
'notify_url'
]
=
$this
->
notify_url
;
$this
->
parameters
[
'notify_url'
]
=
$this
->
notify_url
;
$this
->
parameters
[
'trade_type'
]
=
$this
->
tradeType
;
$this
->
parameters
[
'trade_type'
]
=
$this
->
tradeType
;
...
@@ -66,7 +68,6 @@ class TencentPay {
...
@@ -66,7 +68,6 @@ class TencentPay {
{
{
$this
->
postXml
();
$this
->
postXml
();
$this
->
result
=
$this
->
xmlToArray
(
$this
->
response
);
$this
->
result
=
$this
->
xmlToArray
(
$this
->
response
);
\Our\Log
::
getInstance
()
->
write
(
json_encode
(
$this
->
result
));
$prepay_id
=
isset
(
$this
->
result
[
"prepay_id"
])
?
$this
->
result
[
"prepay_id"
]
:
\Our\ApiConst
::
zero
;
$prepay_id
=
isset
(
$this
->
result
[
"prepay_id"
])
?
$this
->
result
[
"prepay_id"
]
:
\Our\ApiConst
::
zero
;
return
$prepay_id
;
return
$prepay_id
;
}
}
...
...
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