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
22774f77
Commit
22774f77
authored
Dec 11, 2018
by
zhz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into master_dev
parents
5c33b320
0a5535ec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
DescribeConst.php
application/library/Our/DescribeConst.php
+1
-0
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+2
-2
RefundService.php
application/models/Business/Order/RefundService.php
+5
-2
url.ini
conf/url.ini
+1
-1
No files found.
application/library/Our/DescribeConst.php
View file @
22774f77
...
...
@@ -154,6 +154,7 @@ class DescribeConst
const
notPayed
=
'未付款'
;
//货到付款
const
refund
=
'退款'
;
const
refundRetund
=
'退货'
;
const
refundSuccess
=
'退款成功'
;
const
sellerRefuseReturn
=
'卖家拒绝退货'
;
const
sellerAgreeReturn
=
'卖家同意退货'
;
...
...
application/models/Business/Goods/GoodsCommonService.php
View file @
22774f77
...
...
@@ -10,7 +10,7 @@ use Zend\Json\Server\Exception\ErrorException;
class
GoodsCommonServiceModel
extends
\Business\AbstractModel
{
private
$goodsStorageField
=
'goods_id goodsId,goods_name goodsName,goods_verify goodsVerify,goods_state goodsState,goods_image goodsImage,goods_price goodsPrice,goods_storage goodsStorage,goods_spec goodsAttr'
;
private
$goodsStorageField
=
'goods_id goodsId,goods_name goodsName,goods_verify goodsVerify,goods_state goodsState,goods_image goodsImage,goods_price goodsPrice,goods_storage goodsStorage,goods_spec goodsAttr
,goods_storage_alarm as goodsStorageAlarm
'
;
private
$setStorageType
=
array
(
'add'
=>
1
,
'set'
=>
2
);
public
function
init
()
{
...
...
@@ -103,7 +103,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$where
=
array
();
$where
[]
=
'store_id = '
.
$storeId
;
$where
[]
=
'goods_storage_alarm > 0'
;
$where
[]
=
'goods_storage<
=
goods_storage_alarm'
;
$where
[]
=
'goods_storage<goods_storage_alarm'
;
//获得列表
if
(
$datas
=
$goodsDao
->
getList
(
implode
(
$where
,
' and '
),
$this
->
goodsStorageField
))
{
foreach
(
$datas
as
$key
=>
$val
)
{
...
...
application/models/Business/Order/RefundService.php
View file @
22774f77
...
...
@@ -216,14 +216,17 @@ class RefundServiceModel extends \Business\AbstractModel
$refundReturnDao
=
\DAO\Order\RefundReturnModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$returnDetail
=
$refundReturnDao
->
findByRefundId
(
$refundId
,
$refundReturnDao
->
refundDetailField
);
$storeDao
=
\DAO\StoreModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
//$orderGoodsDao=\DAO\Order\RefundReturn
Model::getInstance();
$orderGoodsDao
=
\DAO\Order\OrderGoods
Model
::
getInstance
();
if
(
$returnDetail
[
'storeId'
]
!=
$storeId
){
ErrorModel
::
throwException
(
CodeConfigModel
::
notExistRefund
);
}
$updateData
=
array
();
$updateData
[
'is_suc_refund'
]
=
ApiConst
::
refundSuccess
;
$updateData
[
'refund_state'
]
=
ApiConst
::
refundStateComplete
;
$res
=
$refundReturnDao
->
update
(
array
(
'refund_id'
=>
$refundId
),
$updateData
);
$goodsUpdateData
[
'is_refund'
]
=
ApiConst
::
refundSuccess
;
$goodsUpdateData
[
'refund_state_name'
]
=
DescribeConst
::
refundSuccess
;
$orderGoodsWhere
[
'rec_id'
]
=
$returnDetail
[
'orderGoodsId'
];
$orderGoodsDao
->
update
(
$orderGoodsWhere
,
$goodsUpdateData
);
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$refundReturnDao
,
'getList'
),
array
(),
array
(
$refundId
));
$storeDao
->
deleteStoreCache
(
$storeId
,
$refundId
);
$storeDao
->
deleteStoreRefundCache
(
$storeId
,
$refundId
);
...
...
conf/url.ini
View file @
22774f77
...
...
@@ -55,7 +55,7 @@ config.url.convert=/usr/local/bin/wkhtmltoimage
config.url.resourcesHost
=
"http://apitest.shenbd.com"
; 用户中心host
config.url.userHost
=
""
config.url.ossHost
=
"http
s://img.shenbd.com
"
config.url.ossHost
=
"http
://testadmin.shenbd.com/data/upload
"
; oss 域名
;config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
...
...
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