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
ce80ccd2
Commit
ce80ccd2
authored
Sep 15, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试问题
parent
40fc9b85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
GroupSaleService.php
application/models/Business/Goods/GroupSaleService.php
+5
-2
PaymentService.php
application/models/Business/Order/PaymentService.php
+5
-0
CodeConfig.php
application/models/Error/CodeConfig.php
+2
-0
No files found.
application/models/Business/Goods/GroupSaleService.php
View file @
ce80ccd2
...
@@ -159,7 +159,10 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
...
@@ -159,7 +159,10 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
}
else
{
}
else
{
$tempObj
[
'blChangeFlag'
]
=
\Our\ApiConst
::
one
;
$tempObj
[
'blChangeFlag'
]
=
\Our\ApiConst
::
one
;
}
}
$tempObj
[
'goodsPrice'
]
=
\Goods\GoodsUtil
::
getInstance
()
->
getRealPrice
(
$pBundling
[
'blId'
],
null
,
null
,
\Our\ApiConst
::
addBundingToCart
,
\Our\DbNameConst
::
salveDBConnectName
);
$tempPrice
=
\Goods\GoodsUtil
::
getInstance
()
->
getRealPrice
(
$pBundling
[
'blId'
],
null
,
null
,
\Our\ApiConst
::
addBundingToCart
,
\Our\DbNameConst
::
salveDBConnectName
);
if
(
$tempPrice
){
$tempObj
[
'goodsPrice'
]
=
$tempPrice
;
}
$tempObj
[
'goodsList'
]
=
\Our\Common
::
convertUnderline
(
$pBundling
[
'goodsList'
]);
$tempObj
[
'goodsList'
]
=
\Our\Common
::
convertUnderline
(
$pBundling
[
'goodsList'
]);
$tempObj
[
'goodsOriginalPrice'
]
=
$pBundling
[
'sumPrice'
];
$tempObj
[
'goodsOriginalPrice'
]
=
$pBundling
[
'sumPrice'
];
}
else
if
(
$tempCart
[
'type'
]
==
\Our\ApiConst
::
addGoodsToCart
)
{
}
else
if
(
$tempCart
[
'type'
]
==
\Our\ApiConst
::
addGoodsToCart
)
{
...
@@ -181,7 +184,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
...
@@ -181,7 +184,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
$tempObj
[
'goodsState'
]
=
\Our\ApiConst
::
cartGoodsOffline
;
$tempObj
[
'goodsState'
]
=
\Our\ApiConst
::
cartGoodsOffline
;
}
}
$price
=
\Goods\GoodsUtil
::
getInstance
()
->
getRealPrice
(
$tempCart
[
'goods_id'
],
$memberId
);
$price
=
\Goods\GoodsUtil
::
getInstance
()
->
getRealPrice
(
$tempCart
[
'goods_id'
],
$memberId
);
$tempObj
[
'goodsPrice'
]
=
$price
?
$price
:
intval
(
$tempCart
[
'goods_price'
])
;
$tempObj
[
'goodsPrice'
]
=
$price
?
$price
:
$tempObj
[
'goodsPrice'
]
;
}
}
$tempObj
[
'goodsAttr'
]
=
$goodsDao
->
getFormatGoodsAttr
(
$tempCart
[
'goods_spec'
]);
$tempObj
[
'goodsAttr'
]
=
$goodsDao
->
getFormatGoodsAttr
(
$tempCart
[
'goods_spec'
]);
$tempObj
[
'goodsMid'
]
=
$tempCart
[
'goods_mid'
];
$tempObj
[
'goodsMid'
]
=
$tempCart
[
'goods_mid'
];
...
...
application/models/Business/Order/PaymentService.php
100755 → 100644
View file @
ce80ccd2
...
@@ -22,6 +22,11 @@ class PaymentServiceModel extends \Business\AbstractModel{
...
@@ -22,6 +22,11 @@ class PaymentServiceModel extends \Business\AbstractModel{
if
(
!
$data
[
'paySn'
]){
if
(
!
$data
[
'paySn'
]){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyPaySnForPay
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyPaySnForPay
);
}
}
$orderModel
=
\DAO\Order\OrderModel
::
getInstance
();
$order
=
$orderModel
->
find
(
array
(
'pay_sn'
=>
$data
[
'paySn'
],
'payment_type'
=>
\Our\ApiConst
::
one
,
'order_state'
=>
\Our\ApiConst
::
orderStateWaitPay
));
if
(
!
$order
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
noOrderWaitToPay
);
}
}
}
public
function
updateOrderToPayedWxLite
(){
public
function
updateOrderToPayedWxLite
(){
...
...
application/models/Error/CodeConfig.php
View file @
ce80ccd2
...
@@ -277,6 +277,7 @@ class CodeConfigModel {
...
@@ -277,6 +277,7 @@ class CodeConfigModel {
const
platFormAreadyIn
=
300117
;
const
platFormAreadyIn
=
300117
;
const
noEnoughStorageForBundlingGoods
=
30118
;
const
noEnoughStorageForBundlingGoods
=
30118
;
const
noOrderWaitToPay
=
30119
;
//店铺相关错误码
//店铺相关错误码
//商品分类
//商品分类
...
@@ -746,6 +747,7 @@ class CodeConfigModel {
...
@@ -746,6 +747,7 @@ class CodeConfigModel {
self
::
noExpressDeliveryForOrder1
=>
'该店铺未配置快递配送'
,
self
::
noExpressDeliveryForOrder1
=>
'该店铺未配置快递配送'
,
self
::
goodsNoStoreForCartOrOrder1
=>
'商品库存紧张,您的购买数量太多啦'
,
self
::
goodsNoStoreForCartOrOrder1
=>
'商品库存紧张,您的购买数量太多啦'
,
self
::
noEnoughStorageForBundlingGoods
=>
'组合销售库存紧张,您购买的数量太多啦'
,
self
::
noEnoughStorageForBundlingGoods
=>
'组合销售库存紧张,您购买的数量太多啦'
,
self
::
noOrderWaitToPay
=>
'您的订单已支付,请勿重复重复'
,
//销售员
//销售员
self
::
emptySaleGoodsId
=>
'商品id不能为空'
,
self
::
emptySaleGoodsId
=>
'商品id不能为空'
,
self
::
emptySaleGoods
=>
'销售商品不存在'
,
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