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
62de98c6
Commit
62de98c6
authored
Dec 07, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version
parent
faaa7f73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
OrderService.php
application/models/Business/Order/OrderService.php
+8
-5
RefundReturn.php
application/models/DAO/Order/RefundReturn.php
+2
-2
No files found.
application/models/Business/Order/OrderService.php
View file @
62de98c6
...
...
@@ -291,12 +291,15 @@ class OrderServiceModel extends \Business\AbstractModel
$returnData
[
'diliverymanId'
]
=
ApiConst
::
zero
;
$returnData
[
'deliveryman'
]
=
new
\stdClass
();
}
if
(
!
in_array
(
$this
->
order
[
'paymentType'
],
ArrayConst
::
payTypeOnlines
)){
$returnData
[
'offlinePayway'
]
=
$storeDao
->
convertOfflinePayway
(
$this
->
store
[
'offlinePayway'
]);
if
(
CURRENTVERSION
!=
NameConst
::
versionDefault
){
if
(
!
in_array
(
$this
->
order
[
'paymentType'
],
ArrayConst
::
payTypeOnlines
)){
$returnData
[
'offlinePayway'
]
=
$storeDao
->
convertOfflinePayway
(
$this
->
store
[
'offlinePayway'
]);
}
else
{
$returnData
[
'offlinePayway'
]
=
new
\stdClass
();
}
}
else
{
$returnData
[
'offlinePayway'
]
=
new
\stdClass
();
}
if
(
CURRENTVERSION
!=
NameConst
::
versionOne
){
$returnData
[
'offlinePayway'
]
=
''
;
}
...
...
application/models/DAO/Order/RefundReturn.php
View file @
62de98c6
...
...
@@ -389,7 +389,7 @@ class RefundReturnModel extends \DAO\AbstractModel
$param
[
'refundFee'
]
=
$orderInfo
[
'refund_amount'
];
//退款金额
$param
[
'storeId'
]
=
$orderInfo
[
'store_id'
];
$param
[
'buyerId'
]
=
$orderInfo
[
'buyer_id'
];
if
(
CURRENTVERSION
==
\Our\NameConst
::
versionOne
&&
in_array
(
intval
(
$orderInfo
[
'payment_type'
]),
array
(
ApiConst
::
wxAppPayType
,
ApiConst
::
wxProgram
)))
{
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
=
'微信支付商户错误或者签名错误'
;
...
...
@@ -444,7 +444,7 @@ class RefundReturnModel extends \DAO\AbstractModel
$param
[
'refundFee'
]
=
$orderInfo
[
'orderAmount'
];
//全额退款
$param
[
'storeId'
]
=
$orderInfo
[
'storeId'
];
$param
[
'buyerId'
]
=
$orderInfo
[
'buyerId'
];
if
(
CURRENTVERSION
==
\Our\NameConst
::
versionOne
&&
in_array
(
intval
(
$orderInfo
[
'paymentType'
]),
array
(
\Our\ApiConst
::
wxAppPayType
,
\Our\ApiConst
::
wxProgram
)))
{
if
(
CURRENTVERSION
!=
\Our\NameConst
::
versionDefault
&&
in_array
(
intval
(
$orderInfo
[
'paymentType'
]),
array
(
\Our\ApiConst
::
wxAppPayType
,
\Our\ApiConst
::
wxProgram
)))
{
$mchIdArray
=
\DAO\StoreModel
::
getInstance
()
->
getStoreWxMchId
(
$param
[
'storeId'
]);
if
(
$mchIdArray
[
'errorCode'
]
>
0
)
{
$this
->
errorMessage
=
'微信支付商户错误或者签名错误'
;
...
...
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