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
069edf03
Commit
069edf03
authored
Dec 02, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付内容修改
parent
de056b8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Alipay.php
application/library/Payment/Alipay.php
+1
-1
TencentPay.php
application/library/Payment/TencentPay.php
+2
-2
No files found.
application/library/Payment/Alipay.php
View file @
069edf03
...
...
@@ -27,7 +27,7 @@ class Alipay {
//实例化具体API对应的request类,类名称和接口名称对应,当前调用接口名称:alipay.trade.app.pay
$request
=
new
\Alipay\aop\request\AlipayTradeAppPayRequest
();
//SDK已经封装掉了公共参数,这里只需要传入业务参数
$bizcontent
=
"{\"
body
\
":
\"
"
.
$order
[
'storeName'
]
.
"的订单
号
\"
,"
$bizcontent
=
"{\"
body
\
":
\"
"
.
$order
[
'storeName'
]
.
"的订单
\"
,"
.
"
\"
subject
\"
:
\"
r|"
.
$order
[
'paySn'
]
.
"
\"
,"
.
"
\"
out_trade_no
\"
:
\"
"
.
$order
[
'paySn'
]
.
"
\"
,"
.
"
\"
timeout_express
\"
:
\"
30m
\"
,"
...
...
application/library/Payment/TencentPay.php
View file @
069edf03
...
...
@@ -34,7 +34,7 @@ class TencentPay {
$this
->
parameters
[
'mch_id'
]
=
$this
->
mch_id
;
$this
->
parameters
[
'nonce_str'
]
=
\Our\CommonExtension
::
createNoncestr
(
32
);
//$this->parameters['body']='订单号:'.implode(',',$orderInfo['orderSns']);
$this
->
parameters
[
'body'
]
=
$orderInfo
[
'storeName'
]
.
'的订单
号
'
;
$this
->
parameters
[
'body'
]
=
$orderInfo
[
'storeName'
]
.
'的订单'
;
$this
->
parameters
[
'attach'
]
=
'r|'
.
$pay_sn
;
$this
->
parameters
[
'out_trade_no'
]
=
$pay_sn
;
$this
->
parameters
[
'fee_type'
]
=
\Our\NameConst
::
currentCNY
;
...
...
@@ -65,7 +65,7 @@ class TencentPay {
$this
->
parameters
[
'sub_mch_id'
]
=
$orderInfo
[
'subMchId'
];
$this
->
parameters
[
'nonce_str'
]
=
\Our\CommonExtension
::
createNoncestr
(
32
);
//$this->parameters['body']='订单号:'.implode(',',$orderInfo['orderSns']);
$this
->
parameters
[
'body'
]
=
$orderInfo
[
'storeName'
]
.
'的订单
号
'
;
$this
->
parameters
[
'body'
]
=
$orderInfo
[
'storeName'
]
.
'的订单'
;
$this
->
parameters
[
'attach'
]
=
'r|'
.
$pay_sn
;
$this
->
parameters
[
'out_trade_no'
]
=
$pay_sn
;
$this
->
parameters
[
'fee_type'
]
=
\Our\NameConst
::
currentCNY
;
...
...
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