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
79ff5c94
Commit
79ff5c94
authored
Aug 03, 2021
by
suntengda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 自提点相关接口
parent
475f8aba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
MarketingException.php
application/exception/custom/MarketingException.php
+2
-0
Takeplace.php
application/modules/Marketing/controllers/Takeplace.php
+0
-0
TakePlaceService.php
application/services/marketing/TakePlaceService.php
+3
-0
No files found.
application/exception/custom/MarketingException.php
View file @
79ff5c94
...
@@ -12,6 +12,7 @@ class MarketingException extends BaseException
...
@@ -12,6 +12,7 @@ class MarketingException extends BaseException
const
LIFE_ACCOUNT_NO_EXIST
=
16
;
const
LIFE_ACCOUNT_NO_EXIST
=
16
;
const
RELATION_ALREADY_EXIST
=
17
;
const
RELATION_ALREADY_EXIST
=
17
;
const
TAKE_PLACE_NOT_EXIST
=
20
;
protected
$cus
=
[
protected
$cus
=
[
0
=>
'活动名称不能为空'
,
0
=>
'活动名称不能为空'
,
...
@@ -34,5 +35,6 @@ class MarketingException extends BaseException
...
@@ -34,5 +35,6 @@ class MarketingException extends BaseException
self
::
RELATION_ALREADY_EXIST
=>
'该关联记录已存在'
,
self
::
RELATION_ALREADY_EXIST
=>
'该关联记录已存在'
,
18
=>
'当前填写的拼单活动名称已经存在'
,
18
=>
'当前填写的拼单活动名称已经存在'
,
19
=>
'当前活动不存在'
,
19
=>
'当前活动不存在'
,
self
::
TAKE_PLACE_NOT_EXIST
=>
'自提点不存在'
,
];
];
}
}
\ No newline at end of file
application/modules/Marketing/controllers/Take
P
lace.php
→
application/modules/Marketing/controllers/Take
p
lace.php
View file @
79ff5c94
File moved
application/services/marketing/TakePlaceService.php
View file @
79ff5c94
...
@@ -75,6 +75,9 @@ class TakePlaceService
...
@@ -75,6 +75,9 @@ class TakePlaceService
*/
*/
public
static
function
delete
(
$takePlaceId
)
public
static
function
delete
(
$takePlaceId
)
{
{
if
(
empty
(
self
::
detail
(
$takePlaceId
)))
{
throw
new
MarketingException
([
'cus'
=>
MarketingException
::
TAKE_PLACE_NOT_EXIST
]);
}
return
TakePlace
::
update
(
return
TakePlace
::
update
(
[
'is_delete'
=>
TakePlace
::
STATUS_DELETE
],
[
'is_delete'
=>
TakePlace
::
STATUS_DELETE
],
[
'take_place_id'
=>
$takePlaceId
]
[
'take_place_id'
=>
$takePlaceId
]
...
...
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