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
b207901c
Commit
b207901c
authored
Feb 02, 2019
by
chenchuanwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refund
parent
b82cc942
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
19 deletions
+14
-19
WxPay.php
application/library/Payment/WxPay.php
+6
-6
RefundReturn.php
application/models/DAO/Order/RefundReturn.php
+8
-13
No files found.
application/library/Payment/WxPay.php
View file @
b207901c
...
...
@@ -61,13 +61,13 @@ class WxPay extends \Payment\TencentPay
public
function
refund
(
$param
){
return
$this
->
commonRefund
(
$param
);
//
return $this->commonRefund($param);
// return $this->serviceRefund($param);
//
if($param['subMchId']){
//
return $this->serviceRefund($param);
//
}else{
//
return $this->commonRefund($param);
//
}
if
(
$param
[
'subMchId'
]){
return
$this
->
serviceRefund
(
$param
);
}
else
{
return
$this
->
commonRefund
(
$param
);
}
}
public
function
serviceRefund
(
$param
){
...
...
application/models/DAO/Order/RefundReturn.php
View file @
b207901c
...
...
@@ -419,20 +419,15 @@ class RefundReturnModel extends \DAO\AbstractModel
$param
[
'refundFee'
]
=
$orderInfo
[
'refund_amount'
];
//退款金额
$param
[
'storeId'
]
=
$orderInfo
[
'store_id'
];
$param
[
'buyerId'
]
=
$orderInfo
[
'buyer_id'
];
$mchIdArray
=
\DAO\StoreModel
::
getInstance
()
->
getStoreWxMchId
(
$param
[
'storeId'
]);
if
(
$mchIdArray
[
'errorCode'
]
>
0
)
{
$this
->
errorMessage
=
'微信支付商户错误或者签名错误'
;
return
false
;
if
(
CURRENTVERSION
!=
\Our\NameConst
::
versionDefault
&&
in_array
(
intval
(
$orderInfo
[
'payment_type'
]),
array
(
ApiConst
::
wxAppPayType
,
ApiConst
::
wxProgram
)))
{
$mchIdArray
=
\DAO\StoreModel
::
getInstance
()
->
getStoreWxMchId
(
$param
[
'storeId'
]);
if
(
$mchIdArray
[
'errorCode'
]
>
0
)
{
$this
->
errorMessage
=
'微信支付商户错误或者签名错误'
;
return
false
;
}
$param
[
'subMchId'
]
=
$mchIdArray
[
'mchId'
];
}
$param
[
'subMchId'
]
=
$mchIdArray
[
'mchId'
];
// if (CURRENTVERSION != \Our\NameConst::versionDefault && in_array(intval($orderInfo['payment_type']), array(ApiConst::wxAppPayType, ApiConst::wxProgram))) {
// $mchIdArray = \DAO\StoreModel::getInstance()->getStoreWxMchId($param['storeId']);
// if ($mchIdArray['errorCode'] > 0) {
// $this->errorMessage = '微信支付商户错误或者签名错误';
// return false;
// }
// $param['subMchId'] = $mchIdArray['mchId'];
// }
if
(
intval
(
$orderInfo
[
'payment_type'
])
==
ApiConst
::
wxAppPayType
)
{
$wxpay
=
\Payment\WxPay
::
getInstance
();
//unset($param['subMchId']);
...
...
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