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
be09a2fe
Commit
be09a2fe
authored
Aug 20, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'colonel' of
https://git.yidian-inc.com:8021/bp/goods
into colonel
parents
6350e1a5
efdd23e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
PindanActivityColonelApply.php
...ion/models/marketing/mysql/PindanActivityColonelApply.php
+1
-1
ColonelService.php
application/services/marketing/ColonelService.php
+3
-3
No files found.
application/models/marketing/mysql/PindanActivityColonel.php
→
application/models/marketing/mysql/PindanActivityColonel
Apply
.php
View file @
be09a2fe
...
...
@@ -9,7 +9,7 @@ namespace App\Models\marketing\mysql;
use
Api\PhpUtils\Mysql\MysqlBase
;
class
PindanActivityColonel
extends
MysqlBase
class
PindanActivityColonel
Apply
extends
MysqlBase
{
const
TABLE_NAME
=
'pindan_activity_colonel'
;
const
CONFIG_INDEX
=
'marketing'
;
...
...
application/services/marketing/ColonelService.php
View file @
be09a2fe
...
...
@@ -8,7 +8,7 @@
namespace
App\Services\marketing
;
use
App\Exception\custom\MarketingException
;
use
App\Models\marketing\mysql\PindanActivityColonel
;
use
App\Models\marketing\mysql\PindanActivityColonel
Apply
;
use
Exception
;
class
ColonelService
...
...
@@ -25,7 +25,7 @@ class ColonelService
{
$params
[
'phone'
]
=
(
string
)
$params
[
'phone'
];
// TODO 判断用户是否已经成为团长按照 user_id 判断
if
(
PindanActivityColonel
::
existPhone
(
$params
[
'phone'
]))
{
if
(
PindanActivityColonel
Apply
::
existPhone
(
$params
[
'phone'
]))
{
throw
new
MarketingException
(
MarketingException
::
COLONEL_APPLY_EXIST
);
}
$colonelData
=
[
...
...
@@ -42,7 +42,7 @@ class ColonelService
'area'
=>
$params
[
'area'
]
??
''
,
];
try
{
if
(
!
$applyId
=
PindanActivityColonel
::
insertRecord
(
$colonelData
))
{
if
(
!
$applyId
=
PindanActivityColonel
Apply
::
insertRecord
(
$colonelData
))
{
throw
new
MarketingException
(
MarketingException
::
COLONEL_APPLY_FAILED
);
}
return
$applyId
;
...
...
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