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
e43a54de
Commit
e43a54de
authored
Dec 04, 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
5ffe5f9d
685955ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
OrderConfirmUtil.php
application/library/Order/OrderConfirmUtil.php
+1
-1
RefundService.php
application/models/Business/Order/RefundService.php
+5
-2
ApiReciverInfo.php
application/models/DAO/Order/ApiReciverInfo.php
+6
-1
CodeConfig.php
application/models/Error/CodeConfig.php
+2
-0
No files found.
application/library/Order/OrderConfirmUtil.php
View file @
e43a54de
...
...
@@ -1052,7 +1052,7 @@ class OrderConfirmUtil {
$reciverInfo
[
'mob_phone'
]
=
$addressInfo
[
'mob_phone'
];
$reciverInfo
[
'tel_phone'
]
=
$addressInfo
[
'tel_phone'
];
$reciverInfo
[
'address'
]
=
$addressInfo
[
'area_info'
]
.
' '
.
$addressInfo
[
'address'
];
$reciverInfo
[
'name'
]
=
$addressInfo
[
'name'
];
$reciverInfo
[
'name'
]
=
$addressInfo
[
'
true_
name'
];
$reciverInfo
[
'area'
]
=
$addressInfo
[
'area_info'
];
$reciverInfo
[
'street'
]
=
$addressInfo
[
'address'
];
$reciverInfo
[
'lng'
]
=
$addressInfo
[
'lng'
];
...
...
application/models/Business/Order/RefundService.php
View file @
e43a54de
...
...
@@ -84,7 +84,7 @@ class RefundServiceModel extends \Business\AbstractModel
*/
public
function
setReceiveTime
(
$storeId
,
$refundId
,
$receiveTime
)
{
if
(
$receiveTime
<
TIMESTAMP
){
ErrorModel
::
throwException
(
CodeConfigModel
::
commonError
);
ErrorModel
::
throwException
(
CodeConfigModel
::
beyondRecieverTime
);
}
$refundReturnDao
=
\DAO\Order\RefundReturnModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$storeDao
=
\DAO\StoreModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
...
...
@@ -674,7 +674,7 @@ class RefundServiceModel extends \Business\AbstractModel
// $value['couponAmount'] = ($value['goodsAmount'] + $value['shippingFee']) - $value['orderAmount'];//优惠券金额
// $value['receiveAmount'] = $value['goodsAmount']+$value['shippingFee'] - $value['couponAmount'];
// $value['orderAmount'] = $value['orderAmount'];
$value
[
'reciverInfo'
]
=
unserialize
(
$orderCommons
[
'reciverInfo'
]);
$value
[
'reciverInfo'
]
=
unserialize
(
$orderCommons
[
$value
[
'orderId'
]][
'reciverInfo'
]);
$value
[
'dlyoPickupCode'
]
=
substr
(
$value
[
'orderSn'
],
ApiConst
::
positionPickupCodeBegin
);
$value
[
'deliveryTimeEnd'
]
=
$value
[
'deliveryTime'
]
+
ApiConst
::
arriveTimeRadius
;
$value
[
'goodsImage'
]
=
ImageUtil
::
getGoodsImgUrl
(
$value
[
'goodsImage'
],
ApiConst
::
goodsSmallSize
);
...
...
@@ -702,6 +702,9 @@ class RefundServiceModel extends \Business\AbstractModel
if
(
!
empty
(
$value
[
'picInfo'
])){
$value
[
'picInfo'
]
=
$refundReturnDao
->
getRefundPics
(
$value
[
'picInfo'
][
'buyer'
]);
}
if
(
$value
[
'goodsState'
]
>
ApiConst
::
goodsStateWaitRecieve
){
$value
[
'shippingOver'
]
=
ApiConst
::
shippingOver
;
}
unset
(
$value
[
'goodsSpec'
]);
// unset($value['picInfo']);
}
...
...
application/models/DAO/Order/ApiReciverInfo.php
View file @
e43a54de
...
...
@@ -62,7 +62,12 @@ class ApiReciverInfoModel extends \DAO\AbstractModel
$this
->
cityCode
=
isset
(
$reciverInfo
[
'citycode'
])
?
$reciverInfo
[
'citycode'
]
:
''
;
$this
->
addressId
=
$reciverInfo
[
'address_id'
];
$this
->
subAddress
=
isset
(
$reciverInfo
[
'subaddress'
])
?
$reciverInfo
[
'subaddress'
]
:
''
;
$this
->
trueName
=
$reciverInfo
[
'name'
];
if
(
isset
(
$reciverInfo
[
'name'
])
&&
$reciverInfo
[
'name'
]){
$this
->
trueName
=
$reciverInfo
[
'name'
];
}
else
{
$this
->
trueName
=
$reciverInfo
[
'true_name'
];
}
//$this->trueName=$reciverInfo['true_name'];
}
public
function
getReceiverInfo
(){
...
...
application/models/Error/CodeConfig.php
View file @
e43a54de
...
...
@@ -322,6 +322,7 @@ class CodeConfigModel
const
updateRefundStateNameFail
=
300141
;
const
refundMoneyError
=
300142
;
const
refundWriteError
=
300143
;
const
beyondRecieverTime
=
300144
;
//店铺相关错误码
//商品分类
...
...
@@ -825,6 +826,7 @@ class CodeConfigModel
self
::
updateRefundStateNameFail
=>
'更新order表refund_state_name失败'
,
self
::
refundMoneyError
=>
'退款失败'
,
self
::
refundWriteError
=>
'退款表写入失败'
,
self
::
beyondRecieverTime
=>
'设置收货时间不能早于当前时间'
,
//销售员
self
::
emptySaleGoodsId
=>
'商品id不能为空'
,
self
::
emptySaleGoods
=>
'销售商品不存在'
,
...
...
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