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
3f0a5427
Commit
3f0a5427
authored
Oct 15, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增客户,需要设置保护期截止日期
parent
7441f585
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
ImageDepot.php
application/index/controller/ImageDepot.php
+9
-2
UserService.php
application/index/service/UserService.php
+6
-0
No files found.
application/index/controller/ImageDepot.php
View file @
3f0a5427
...
...
@@ -172,9 +172,16 @@ class ImageDepot extends Basic
public
function
ceshi
(){
//查询客户是否在保护期内
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
$user_service
=
new
UserService
();
$res
=
$user_service
->
isUserProtect
(
1
);
dump
(
$res
);
$is_outstrip_twenty_four_hours
=
$user_service
->
isUserProtect
(
1
);
dump
(
$is_outstrip_twenty_four_hours
);
if
(
$is_outstrip_twenty_four_hours
==
0
){
dump
(
'保护器内'
);
}
else
{
dump
(
'超过保护期'
);
}
}
...
...
application/index/service/UserService.php
View file @
3f0a5427
...
...
@@ -84,6 +84,12 @@ class UserService
$id
=
$this
->
user
->
edit
(
$data
,
$id
,
$operation_id
);
//新增或编辑
//操作完成之后判断下是什么动作
if
(
$type
==
'add'
){
//$type等于'add'说明是新增客户,需要设置保护期截止日期
$this
->
setUserProtectTime
(
$id
);
}
if
(
$id
<=
0
)
{
$msg
=
$this
->
getCodeMsg
(
$id
);
$result
[
'status'
]
=
'fail'
;
...
...
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