Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
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
bp
goods
Commits
da5cc3fc
Commit
da5cc3fc
authored
Aug 10, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:拼单活动,自提点必填
parent
3ca08b6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
MarketingException.php
application/exception/custom/MarketingException.php
+1
-0
MarketingService.php
application/services/marketing/MarketingService.php
+6
-0
No files found.
application/exception/custom/MarketingException.php
View file @
da5cc3fc
...
...
@@ -37,5 +37,6 @@ class MarketingException extends BaseException
19
=>
'当前活动不存在'
,
self
::
TAKE_PLACE_NOT_EXIST
=>
'自提点不存在'
,
21
=>
"活动开始时间不能大于或者等雨结束时间"
,
22
=>
"自提点不能为空"
,
];
}
\ No newline at end of file
application/services/marketing/MarketingService.php
View file @
da5cc3fc
...
...
@@ -507,6 +507,9 @@ class MarketingService
if
(
$startTime
>=
$endTime
)
{
throw
new
MarketingException
([
'cus'
=>
21
]);
}
if
(
empty
(
$takePlaceIds
))
{
throw
new
MarketingException
([
'cus'
=>
22
]);
}
//重复判断
$marketing
=
Marketing
::
getRecord
([
"marketing_name"
=>
$marketingName
],
[
"marketing_id"
]);
...
...
@@ -661,6 +664,9 @@ class MarketingService
if
(
$startTime
>=
$endTime
)
{
throw
new
MarketingException
([
'cus'
=>
21
]);
}
if
(
empty
(
$takePlaceIds
))
{
throw
new
MarketingException
([
'cus'
=>
22
]);
}
//获取商品的最大最小值
$skuInfoList
=
PindanGoodsSku
::
getRecordMaster
([
"goods_sku_id"
=>
$goodsSkuId
]
...
...
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