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
357b9734
Commit
357b9734
authored
Jul 22, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:set
parent
91c7b16c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
DistributorException.php
application/exception/custom/DistributorException.php
+1
-0
DistributorService.php
application/services/marketing/DistributorService.php
+4
-0
No files found.
application/exception/custom/DistributorException.php
View file @
357b9734
...
@@ -34,5 +34,6 @@ class DistributorException extends BaseException
...
@@ -34,5 +34,6 @@ class DistributorException extends BaseException
15
=>
'活动id不能能为空'
,
15
=>
'活动id不能能为空'
,
16
=>
'商品id不能能为空'
,
16
=>
'商品id不能能为空'
,
17
=>
'验证码不正确或过期'
,
17
=>
'验证码不正确或过期'
,
18
=>
'自己不能成为自己的下线'
,
];
];
}
}
\ No newline at end of file
application/services/marketing/DistributorService.php
View file @
357b9734
...
@@ -222,6 +222,10 @@ class DistributorService
...
@@ -222,6 +222,10 @@ class DistributorService
throw
new
DistributorException
([
'cus'
=>
7
]);
throw
new
DistributorException
([
'cus'
=>
7
]);
}
}
if
(
$jwUserId
==
$shareUserId
)
{
throw
new
DistributorException
([
'cus'
=>
18
]);
}
$info
=
Distributor
::
getRecord
([
'user_id'
=>
$jwUserId
]);
$info
=
Distributor
::
getRecord
([
'user_id'
=>
$jwUserId
]);
if
(
!
empty
(
$info
)
&&
$info
[
'parent_user_id'
]
>
0
)
{
if
(
!
empty
(
$info
)
&&
$info
[
'parent_user_id'
]
>
0
)
{
throw
new
DistributorException
([
'cus'
=>
8
]);
throw
new
DistributorException
([
'cus'
=>
8
]);
...
...
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