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
cbd37e08
Commit
cbd37e08
authored
Nov 15, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
913fad99
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
OrderService.php
application/models/Business/Order/OrderService.php
+1
-1
RefundService.php
application/models/Business/Order/RefundService.php
+1
-1
ShopkeeperService.php
application/models/Business/Store/ShopkeeperService.php
+2
-2
No files found.
application/models/Business/Order/OrderService.php
View file @
cbd37e08
...
@@ -276,7 +276,7 @@ class OrderServiceModel extends \Business\AbstractModel
...
@@ -276,7 +276,7 @@ class OrderServiceModel extends \Business\AbstractModel
$returnData
[
'shippingName'
]
=
$orderDao
->
getShippingName
(
$returnData
[
'shippingType'
]);
$returnData
[
'shippingName'
]
=
$orderDao
->
getShippingName
(
$returnData
[
'shippingType'
]);
$returnData
[
'orderMessage'
]
=
$this
->
orderCommon
[
'orderMessage'
];
$returnData
[
'orderMessage'
]
=
$this
->
orderCommon
[
'orderMessage'
];
$returnData
[
'shippingFeeName'
]
=
$orderDao
->
getFreightFeeName
(
$returnData
[
'shippingType'
]);
$returnData
[
'shippingFeeName'
]
=
$orderDao
->
getFreightFeeName
(
$returnData
[
'shippingType'
]);
$returnData
[
'dlyoPickupCode'
]
=
intval
(
substr
(
$returnData
[
'orderSn'
],
ApiConst
::
positionPickupCodeBegin
)
);
$returnData
[
'dlyoPickupCode'
]
=
substr
(
$returnData
[
'orderSn'
],
ApiConst
::
positionPickupCodeBegin
);
$returnData
[
'paymentName'
]
=
$orderDao
->
getPayTypeName
(
$returnData
[
'paymentType'
]);
$returnData
[
'paymentName'
]
=
$orderDao
->
getPayTypeName
(
$returnData
[
'paymentType'
]);
$returnData
[
'discountAmount'
]
=
$returnData
[
'goodsAmount'
]
-
$returnData
[
'orderAmount'
]
+
$returnData
[
'shippingFee'
];
$returnData
[
'discountAmount'
]
=
$returnData
[
'goodsAmount'
]
-
$returnData
[
'orderAmount'
]
+
$returnData
[
'shippingFee'
];
$returnData
[
'orderText'
]
=
$orderDao
->
getStatusDetailText
(
$this
->
order
);
$returnData
[
'orderText'
]
=
$orderDao
->
getStatusDetailText
(
$this
->
order
);
...
...
application/models/Business/Order/RefundService.php
View file @
cbd37e08
...
@@ -451,7 +451,7 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -451,7 +451,7 @@ class RefundServiceModel extends \Business\AbstractModel
// $value['receiveAmount'] = $value['goodsAmount']+$value['shippingFee'] - $value['couponAmount'];
// $value['receiveAmount'] = $value['goodsAmount']+$value['shippingFee'] - $value['couponAmount'];
// $value['orderAmount'] = $value['orderAmount'];
// $value['orderAmount'] = $value['orderAmount'];
$value
[
'reciverInfo'
]
=
unserialize
(
$orderCommons
[
'reciverInfo'
]);
$value
[
'reciverInfo'
]
=
unserialize
(
$orderCommons
[
'reciverInfo'
]);
$value
[
'dlyoPickupCode'
]
=
intval
(
substr
(
$value
[
'orderSn'
],
ApiConst
::
positionPickupCodeBegin
)
);
$value
[
'dlyoPickupCode'
]
=
substr
(
$value
[
'orderSn'
],
ApiConst
::
positionPickupCodeBegin
);
$value
[
'deliveryTimeEnd'
]
=
$value
[
'deliveryTime'
]
+
ApiConst
::
arriveTimeRadius
;
$value
[
'deliveryTimeEnd'
]
=
$value
[
'deliveryTime'
]
+
ApiConst
::
arriveTimeRadius
;
$value
[
'goodsImage'
]
=
ImageUtil
::
getGoodsImgUrl
(
$value
[
'goodsImage'
],
ApiConst
::
goodsSmallSize
);
$value
[
'goodsImage'
]
=
ImageUtil
::
getGoodsImgUrl
(
$value
[
'goodsImage'
],
ApiConst
::
goodsSmallSize
);
$value
[
'goodsAttr'
]
=
$goodsDao
->
getFormatGoodsAttr
(
$value
[
'goodsSpec'
]);
$value
[
'goodsAttr'
]
=
$goodsDao
->
getFormatGoodsAttr
(
$value
[
'goodsSpec'
]);
...
...
application/models/Business/Store/ShopkeeperService.php
View file @
cbd37e08
...
@@ -312,7 +312,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -312,7 +312,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
// $value['orderAmount'] = $value['orderAmount'];
// $value['orderAmount'] = $value['orderAmount'];
$value
[
'reciverInfo'
]
=
unserialize
(
$value
[
'reciverInfo'
]);
$value
[
'reciverInfo'
]
=
unserialize
(
$value
[
'reciverInfo'
]);
$value
[
'reciverInfo'
]
=
$orderCommonDao
->
getReciverInfo
(
$value
[
'reciverInfo'
]
);
$value
[
'reciverInfo'
]
=
$orderCommonDao
->
getReciverInfo
(
$value
[
'reciverInfo'
]
);
$value
[
'dlyoPickupCode'
]
=
intval
(
substr
(
$value
[
'orderSn'
],
ApiConst
::
positionPickupCodeBegin
)
);
$value
[
'dlyoPickupCode'
]
=
substr
(
$value
[
'orderSn'
],
ApiConst
::
positionPickupCodeBegin
);
$value
[
'deliveryTimeEnd'
]
=
$value
[
'deliveryTime'
]
+
ApiConst
::
arriveTimeRadius
;
$value
[
'deliveryTimeEnd'
]
=
$value
[
'deliveryTime'
]
+
ApiConst
::
arriveTimeRadius
;
if
(
$value
[
'diliverymanId'
])
{
if
(
$value
[
'diliverymanId'
])
{
$diliverymanDao
=
DiliverymanModel
::
getInstance
();
$diliverymanDao
=
DiliverymanModel
::
getInstance
();
...
@@ -502,7 +502,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -502,7 +502,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$returnData
[
'couponAmount'
]
=
(
$returnData
[
'goodsAmount'
]
+
$returnData
[
'shippingFee'
])
-
$returnData
[
'orderAmount'
];
//优惠券金额
$returnData
[
'couponAmount'
]
=
(
$returnData
[
'goodsAmount'
]
+
$returnData
[
'shippingFee'
])
-
$returnData
[
'orderAmount'
];
//优惠券金额
$returnData
[
'receiveAmount'
]
=
$returnData
[
'goodsAmount'
]
-
$returnData
[
'couponAmount'
];
$returnData
[
'receiveAmount'
]
=
$returnData
[
'goodsAmount'
]
-
$returnData
[
'couponAmount'
];
$returnData
[
'orderAmount'
]
=
$returnData
[
'orderAmount'
]
+
$returnData
[
'couponAmount'
];
$returnData
[
'orderAmount'
]
=
$returnData
[
'orderAmount'
]
+
$returnData
[
'couponAmount'
];
$returnData
[
'dlyoPickupCode'
]
=
intval
(
substr
(
$returnData
[
'orderSn'
],
ApiConst
::
positionPickupCodeBegin
)
);
$returnData
[
'dlyoPickupCode'
]
=
substr
(
$returnData
[
'orderSn'
],
ApiConst
::
positionPickupCodeBegin
);
$returnData
[
'deliveryTimeEnd'
]
=
$returnData
[
'deliveryTime'
]
+
ApiConst
::
arriveTimeRadius
;
$returnData
[
'deliveryTimeEnd'
]
=
$returnData
[
'deliveryTime'
]
+
ApiConst
::
arriveTimeRadius
;
}
else
{
}
else
{
unset
(
$returnData
[
'reciverInfo'
]);
unset
(
$returnData
[
'reciverInfo'
]);
...
...
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