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
5472bac4
Commit
5472bac4
authored
Nov 27, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refund
parent
38e42329
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
417 additions
and
206 deletions
+417
-206
DescribeConst.php
application/library/Our/DescribeConst.php
+3
-0
OrderService.php
application/models/Business/Order/OrderService.php
+43
-43
RefundService.php
application/models/Business/Order/RefundService.php
+243
-101
RefundReturn.php
application/models/DAO/Order/RefundReturn.php
+100
-46
CodeConfig.php
application/models/Error/CodeConfig.php
+8
-1
Shopkeeper.php
application/modules/Client/controllers/Shopkeeper.php
+20
-15
No files found.
application/library/Our/DescribeConst.php
View file @
5472bac4
...
@@ -152,6 +152,9 @@ class DescribeConst
...
@@ -152,6 +152,9 @@ class DescribeConst
const
refund
=
'退款'
;
const
refund
=
'退款'
;
const
refundRetund
=
'退货'
;
const
refundRetund
=
'退货'
;
const
sellerRefuseReturn
=
'卖家拒绝退货'
;
const
sellerAgreeReturn
=
'卖家同意退货'
;
//用户订单送达消息
//用户订单送达消息
const
reacheRemindTitle
=
'你的订单卖家已经送达'
;
const
reacheRemindTitle
=
'你的订单卖家已经送达'
;
const
reacheRemindContent
=
'你有新的订单号为{0}的订单已经已经送达'
;
const
reacheRemindContent
=
'你有新的订单号为{0}的订单已经已经送达'
;
...
...
application/models/Business/Order/OrderService.php
View file @
5472bac4
This diff is collapsed.
Click to expand it.
application/models/Business/Order/RefundService.php
View file @
5472bac4
This diff is collapsed.
Click to expand it.
application/models/DAO/Order/RefundReturn.php
View file @
5472bac4
This diff is collapsed.
Click to expand it.
application/models/Error/CodeConfig.php
View file @
5472bac4
...
@@ -130,6 +130,7 @@ class CodeConfigModel
...
@@ -130,6 +130,7 @@ class CodeConfigModel
const
emptyScanStoreId
=
40010
;
const
emptyScanStoreId
=
40010
;
const
emptyScanStoreInfo
=
40011
;
const
emptyScanStoreInfo
=
40011
;
const
saveScanStoreInfoFailed
=
40012
;
const
saveScanStoreInfoFailed
=
40012
;
const
storeNotOpen
=
40013
;
//购物车
//购物车
const
wrongCartType
=
50001
;
const
wrongCartType
=
50001
;
...
@@ -314,7 +315,9 @@ class CodeConfigModel
...
@@ -314,7 +315,9 @@ class CodeConfigModel
const
orderWxPayError
=
30137
;
const
orderWxPayError
=
30137
;
const
orderWxPaySignError
=
30138
;
const
orderWxPaySignError
=
30138
;
const
wrongRefundState
=
300139
;
const
updateIsRefundFail
=
300140
;
const
updateRefundStateNameFail
=
300141
;
//店铺相关错误码
//店铺相关错误码
//商品分类
//商品分类
...
@@ -549,6 +552,7 @@ class CodeConfigModel
...
@@ -549,6 +552,7 @@ class CodeConfigModel
self
::
emptyScanStoreId
=>
'扫码关注店铺ID为空'
,
self
::
emptyScanStoreId
=>
'扫码关注店铺ID为空'
,
self
::
emptyScanStoreInfo
=>
'扫码关注店铺不存在'
,
self
::
emptyScanStoreInfo
=>
'扫码关注店铺不存在'
,
self
::
saveScanStoreInfoFailed
=>
'扫码店铺保存失败'
,
self
::
saveScanStoreInfoFailed
=>
'扫码店铺保存失败'
,
self
::
storeNotOpen
=>
'店铺还未配置开启'
,
//购物车相关
//购物车相关
self
::
wrongCartType
=>
'加入购物车类型不能为空'
,
self
::
wrongCartType
=>
'加入购物车类型不能为空'
,
...
@@ -809,6 +813,9 @@ class CodeConfigModel
...
@@ -809,6 +813,9 @@ class CodeConfigModel
self
::
selfGoodsForStoreOrder
=>
'店主不能购买自己的商品'
,
self
::
selfGoodsForStoreOrder
=>
'店主不能购买自己的商品'
,
self
::
orderWxPayError
=>
'微信支付尚未开通'
,
self
::
orderWxPayError
=>
'微信支付尚未开通'
,
self
::
orderWxPaySignError
=>
'微信支付签名错误'
,
self
::
orderWxPaySignError
=>
'微信支付签名错误'
,
self
::
wrongRefundState
=>
'订单状态有误'
,
self
::
updateIsRefundFail
=>
'更新is_refund失败'
,
self
::
updateRefundStateNameFail
=>
'更新order表refund_state_name失败'
,
//销售员
//销售员
self
::
emptySaleGoodsId
=>
'商品id不能为空'
,
self
::
emptySaleGoodsId
=>
'商品id不能为空'
,
self
::
emptySaleGoods
=>
'销售商品不存在'
,
self
::
emptySaleGoods
=>
'销售商品不存在'
,
...
...
application/modules/Client/controllers/Shopkeeper.php
View file @
5472bac4
...
@@ -202,16 +202,16 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
...
@@ -202,16 +202,16 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
* 查询配送员
* 查询配送员
*
*
*/
*/
public
function
searchDeliveryAction
(){
public
function
searchDeliveryAction
(){
$shopkeeperService
=
\Business\Store\ShopkeeperServiceModel
::
getInstance
();
$shopkeeperService
=
\Business\Store\ShopkeeperServiceModel
::
getInstance
();
$res
=
$shopkeeperService
->
getDiliveryMan
(
$this
->
req
[
'data'
][
'mobile'
]);
$res
=
$shopkeeperService
->
getDiliveryMan
(
$this
->
req
[
'data'
][
'mobile'
]);
$res
=
$res
?
$res
:
new
\stdClass
();
$res
=
$res
?
$res
:
new
\stdClass
();
$this
->
success
(
$res
,
\Our\DescribeConst
::
successMessage
);
$this
->
success
(
$res
,
\Our\DescribeConst
::
successMessage
);
}
}
/**
/**
* 单一属性商品库存预警
* 单一属性商品库存预警
* @author king
* @author king
*/
*/
public
function
warningAction
(){
public
function
warningAction
(){
$goodsCommonService
=
\Business\Goods\GoodsCommonServiceModel
::
getInstance
();
$goodsCommonService
=
\Business\Goods\GoodsCommonServiceModel
::
getInstance
();
$pageIndex
=
$this
->
getPageIndex
();
$pageIndex
=
$this
->
getPageIndex
();
...
@@ -259,8 +259,13 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
...
@@ -259,8 +259,13 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
$refundService
=
\Business\Order\RefundServiceModel
::
getInstance
();
$refundService
=
\Business\Order\RefundServiceModel
::
getInstance
();
$refundAmount
=
floatval
(
$this
->
req
[
'data'
][
'refundAmount'
]);
$refundAmount
=
floatval
(
$this
->
req
[
'data'
][
'refundAmount'
]);
$text
=
trim
(
$this
->
req
[
'data'
][
'text'
]);
$text
=
trim
(
$this
->
req
[
'data'
][
'text'
]);
$res
=
$refundService
->
refund
(
$this
->
storeId
,
$this
->
sellerId
,
$this
->
sellerName
,
$refundId
,
$refundAmount
,
$text
);
$isGiveUp
=
$this
->
req
[
'data'
][
'isGiveUp'
]
?
$this
->
req
[
'data'
][
'isGiveUp'
]
:
\Our\ApiConst
::
zero
;
$this
->
success
(
$res
);
$res
=
$refundService
->
refund
(
$this
->
storeId
,
$this
->
sellerId
,
$this
->
sellerName
,
$refundId
,
$refundAmount
,
$text
,
\Our\ApiConst
::
refundSellerAgree
,
$isGiveUp
);
if
(
$res
){
$this
->
success
(
'操作成功'
);
}
ErrorModel
::
throwException
(
CodeConfigModel
::
commonError
);
}
}
/**
/**
...
@@ -278,9 +283,9 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
...
@@ -278,9 +283,9 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
}
}
/**
/**
* 确认收货
* 确认收货
* @throws Exception
* @throws Exception
*/
*/
public
function
confirmReceiveAction
(){
public
function
confirmReceiveAction
(){
$refundId
=
intval
(
$this
->
req
[
'data'
][
'refundId'
]);
$refundId
=
intval
(
$this
->
req
[
'data'
][
'refundId'
]);
if
(
!
$refundId
)
{
if
(
!
$refundId
)
{
...
...
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