Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
08dda557
Commit
08dda557
authored
Mar 16, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
where
parent
514812af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
CouponService.php
application/api/service/CouponService.php
+11
-10
No files found.
application/api/service/CouponService.php
View file @
08dda557
...
@@ -145,18 +145,19 @@ class CouponService{
...
@@ -145,18 +145,19 @@ class CouponService{
}
}
}
}
if
(
$type
==
0
)
{
if
(
$v
[
'available'
]
!=
-
1
)
{
if
(
$invitee_id
)
{
if
(
$type
==
0
)
{
$count_where
[
'invitee_id'
]
=
$invitee_id
;
if
(
$invitee_id
)
{
}
$count_where
[
'invitee_id'
]
=
$invitee_id
;
$count_where
[
'activity_id'
]
=
$v
[
'id'
];
}
$num
=
$this
->
m_coupon
->
getCount
(
$count_where
);
//是否邀请过该客户
$count_where
[
'activity_id'
]
=
$v
[
'id'
];
if
(
$num
>
0
)
{
$num
=
$this
->
m_coupon
->
getCount
(
$count_where
);
//是否邀请过该客户
continue
;
if
(
$num
>
0
)
{
continue
;
}
}
}
}
if
(
$v
[
'available'
]
!=
-
1
)
{
$where
[
'user_id'
]
=
$user_id
;
$where
[
'user_id'
]
=
$user_id
;
$where
[
'activity_id'
]
=
$v
[
'id'
];
$where
[
'activity_id'
]
=
$v
[
'id'
];
$where
[
'status'
]
=
[
'<>'
,
2
];
$where
[
'status'
]
=
[
'<>'
,
2
];
...
...
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