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
d25b5d16
Commit
d25b5d16
authored
Nov 29, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
7cde8f8b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
RefundService.php
application/models/Business/Order/RefundService.php
+2
-2
Shopkeeper.php
application/modules/Client/controllers/Shopkeeper.php
+2
-2
No files found.
application/models/Business/Order/RefundService.php
View file @
d25b5d16
...
@@ -346,7 +346,7 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -346,7 +346,7 @@ class RefundServiceModel extends \Business\AbstractModel
* @param $refundAmount 退款金额
* @param $refundAmount 退款金额
* @param string $text 退款消息
* @param string $text 退款消息
*/
*/
public
function
refund
(
$storeId
,
$sellerId
,
$sellerName
,
$refundId
,
$sellerState
,
$refundAmount
=
0
,
$text
=
''
,
$seller_state
=
2
,
$isGiveUp
=
ApiConst
::
zero
)
public
function
refund
(
$storeId
,
$sellerId
,
$sellerName
,
$refundId
,
$refundAmount
=
0
,
$text
=
''
,
$seller_state
=
2
,
$isGiveUp
=
ApiConst
::
zero
)
{
{
$refundReturnDao
=
\DAO\Order\RefundReturnModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$refundReturnDao
=
\DAO\Order\RefundReturnModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
...
@@ -356,7 +356,7 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -356,7 +356,7 @@ class RefundServiceModel extends \Business\AbstractModel
$whereRefund
[
'refund_id'
]
=
$refundId
;
$whereRefund
[
'refund_id'
]
=
$refundId
;
$refund
=
$refundReturnDao
->
find
(
$whereRefund
);
$refund
=
$refundReturnDao
->
find
(
$whereRefund
);
if
(
$refund
[
'refund_type'
]
==
ApiConst
::
refundTypeGoods
){
if
(
$refund
[
'refund_type'
]
==
ApiConst
::
refundTypeGoods
){
if
(
$this
->
returnGoods
(
$storeId
,
$refundId
,
$seller
S
tate
,
$refundAmount
,
$text
,
$isGiveUp
)){
if
(
$this
->
returnGoods
(
$storeId
,
$refundId
,
$seller
_s
tate
,
$refundAmount
,
$text
,
$isGiveUp
)){
$refundReturnDao
->
deleteRefundCache
(
$refund
[
'buyer_id'
],
$refund
[
'refund_id'
]);
$refundReturnDao
->
deleteRefundCache
(
$refund
[
'buyer_id'
],
$refund
[
'refund_id'
]);
$orderDao
->
deleteOrderCache
(
$refund
[
'buyer_id'
],
$refund
[
'order_id'
],
$refund
[
'store_id'
]);
$orderDao
->
deleteOrderCache
(
$refund
[
'buyer_id'
],
$refund
[
'order_id'
],
$refund
[
'store_id'
]);
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$refundReturnDao
,
'getList'
),
array
(),
array
(
$refund
[
'store_id'
]));
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$refundReturnDao
,
'getList'
),
array
(),
array
(
$refund
[
'store_id'
]));
...
...
application/modules/Client/controllers/Shopkeeper.php
View file @
d25b5d16
...
@@ -260,7 +260,7 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
...
@@ -260,7 +260,7 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
$refundAmount
=
floatval
(
$this
->
req
[
'data'
][
'refundAmount'
]);
$refundAmount
=
floatval
(
$this
->
req
[
'data'
][
'refundAmount'
]);
$text
=
trim
(
$this
->
req
[
'data'
][
'text'
]);
$text
=
trim
(
$this
->
req
[
'data'
][
'text'
]);
$isGiveUp
=
$this
->
req
[
'data'
][
'isGiveUp'
]
?
$this
->
req
[
'data'
][
'isGiveUp'
]
:
\Our\ApiConst
::
zero
;
$isGiveUp
=
$this
->
req
[
'data'
][
'isGiveUp'
]
?
$this
->
req
[
'data'
][
'isGiveUp'
]
:
\Our\ApiConst
::
zero
;
$res
=
$refundService
->
refund
(
$this
->
storeId
,
$this
->
sellerId
,
$this
->
sellerName
,
$refundId
,
\Our\ApiConst
::
refundSellerAgree
,
$refundAmount
,
$text
,
\Our\ApiConst
::
refundSellerAgree
,
$isGiveUp
);
$res
=
$refundService
->
refund
(
$this
->
storeId
,
$this
->
sellerId
,
$this
->
sellerName
,
$refundId
,
$refundAmount
,
$text
,
\Our\ApiConst
::
refundSellerAgree
,
$isGiveUp
);
if
(
$res
){
if
(
$res
){
$this
->
success
(
'操作成功'
);
$this
->
success
(
'操作成功'
);
}
}
...
@@ -278,7 +278,7 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
...
@@ -278,7 +278,7 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
}
}
$refundService
=
\Business\Order\RefundServiceModel
::
getInstance
();
$refundService
=
\Business\Order\RefundServiceModel
::
getInstance
();
$text
=
trim
(
$this
->
req
[
'data'
][
'text'
]);
$text
=
trim
(
$this
->
req
[
'data'
][
'text'
]);
$res
=
$refundService
->
refund
(
$this
->
storeId
,
$this
->
sellerId
,
$this
->
sellerName
,
$refundId
,
0
,
$text
,
3
);
$res
=
$refundService
->
refund
(
$this
->
storeId
,
$this
->
sellerId
,
$this
->
sellerName
,
$refundId
,
\Our\ApiConst
::
zero
,
$text
,
\Our\ApiConst
::
refundSellerRefuse
);
$this
->
success
(
$res
);
$this
->
success
(
$res
);
}
}
...
...
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