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
a3486877
Commit
a3486877
authored
Mar 11, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建活动
parent
1758a2e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
Activity.php
application/api/controller/Activity.php
+8
-2
route.php
application/route.php
+2
-0
No files found.
application/api/controller/Activity.php
View file @
a3486877
...
...
@@ -25,7 +25,7 @@ class Activity extends Basic
public
function
createActivity
()
{
$params
=
$this
->
params
;
$params
=
array
(
/*
$params = array(
'title' => '活动1',
'return_type' => '1',
'money' => '1121',
...
...
@@ -36,7 +36,7 @@ class Activity extends Basic
'total' => 100,
'available' => 1,
'activity_rule' => '加拉时间的发送去问问人情味',
);
);
*/
$checkResult
=
$this
->
validate
(
$params
,
"ActivityValidate.create"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
...
...
@@ -56,6 +56,11 @@ class Activity extends Basic
}
$is_ok
=
$this
->
activityService
->
createActivity
(
$title
,
$return_type
,
$money
,
$return_action
,
$activity_start_time
,
$activity_end_time
,
$use_period
,
$total
,
$available
,
$activity_rule
);
if
(
$is_ok
>
0
){
return
$this
->
response
(
"200"
,
"add success"
);
}
else
{
return
$this
->
response
(
"101"
,
"faild"
);
}
}
}
\ No newline at end of file
application/route.php
View file @
a3486877
...
...
@@ -512,6 +512,8 @@ Route::group('api', [
'addUserCallAgent'
=>
[
'api/CallAgent/addUserCallAgent'
,
[
'method'
=>
'POST|GET'
]],
//客户来电记录
'addUserCallAgentV2'
=>
[
'api/CallAgent/addUserCallAgentV2'
,
[
'method'
=>
'POST|GET'
]],
//客户来电记录h5
'createActivity'
=>
[
'api/Activity/createActivity'
,
[
'method'
=>
'POST|GET'
]],
//新增活动
]);
...
...
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