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
32847ffe
Commit
32847ffe
authored
Feb 09, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time
parent
4ae50278
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
25 deletions
+0
-25
Label.php
application/index/controller/Label.php
+0
-1
AStore.php
application/model/AStore.php
+0
-2
GHouses.php
application/model/GHouses.php
+0
-9
GHousesImgs.php
application/model/GHousesImgs.php
+0
-3
GHousesToAgents.php
application/model/GHousesToAgents.php
+0
-10
No files found.
application/index/controller/Label.php
View file @
32847ffe
...
...
@@ -31,7 +31,6 @@ class Label extends Basic
$labels
=
new
GLabels
();
$data
[
'name'
]
=
$this
->
params
[
'name'
];
$data
[
'operation_id'
]
=
Session
::
get
(
'userId'
);
$data
[
'create_time'
]
=
date
(
'Y-m-d H:i:s'
);
$data
[
'type'
]
=
$this
->
params
[
'type'
];
if
(
$this
->
params
[
'id'
])
{
$result
[
'data'
]
=
$labels
->
save
(
$data
,
[
'id'
=>
$this
->
params
[
'id'
]]);
...
...
application/model/AStore.php
View file @
32847ffe
...
...
@@ -36,8 +36,6 @@ class AStore extends BaseModel
$store_data
[
'district_id'
]
=
$data
[
'district_id'
];
$store_data
[
'code'
]
=
implode
(
'##'
,
$code_arr
);
$agents
=
new
AAgents
();
if
(
$data
[
'id'
]
==
''
)
{
$store_data
[
'create_time'
]
=
date
(
'Y-m-d H:i:s'
);
$this
->
save
(
$store_data
);
...
...
application/model/GHouses.php
View file @
32847ffe
...
...
@@ -231,15 +231,6 @@ class GHouses extends BaseModel
* @throws \think\exception\DbException
*/
public
function
add
(
$params
)
{
$date
=
date
(
'Y-m-d H:i:s'
);
if
(
$params
[
'id'
])
{
$params
[
'update_time'
]
=
$date
;
}
else
{
$params
[
'create_time'
]
=
$date
;
$params
[
'update_time'
]
=
$date
;
}
$case
=
new
ACase
();
$case_id
=
$case
->
addCase
(
$params
[
'phone'
]);
$params
[
'case_id'
]
=
$case_id
;
...
...
application/model/GHousesImgs.php
View file @
32847ffe
...
...
@@ -23,9 +23,6 @@ class GHousesImgs extends BaseModel
*/
public
function
add
(
$params
,
$house_id
)
{
$date
=
date
(
'Y-m-d H:i:s'
);
$params
[
'create_time'
]
=
$date
;
$params
[
'update_time'
]
=
$date
;
$count
=
0
;
$insert_img
=
array
();
//1列表页封面图
...
...
application/model/GHousesToAgents.php
View file @
32847ffe
...
...
@@ -7,12 +7,6 @@ use think\Model;
class
GHousesToAgents
extends
BaseModel
{
protected
$table
=
'g_houses_to_agents'
;
protected
$date
=
''
;
public
function
__construct
()
{
$this
->
date
=
date
(
'Y-m-d H:i:s'
);
}
/**
* @param $agents_id
...
...
@@ -26,7 +20,6 @@ class GHousesToAgents extends BaseModel
*/
public
function
addAgents
(
$agents_id
,
$houses_id
,
$type
){
$agent_arr
=
array
();
$date
=
date
(
'Y-m-d H:i:s'
);
$agents_id
=
array_unique
(
explode
(
','
,
$agents_id
));
$where
[
'type'
]
=
$type
;
...
...
@@ -53,7 +46,6 @@ class GHousesToAgents extends BaseModel
if
(
!
in_array
(
$v
[
'agents_id'
],
$agents_id
)
&&
(
$type
==
$v
[
'type'
])
&&
(
$v
[
'agents_id'
]
!=
NULL
))
{
$agent_arr
[
$key
][
'id'
]
=
$v
[
'id'
];
$agent_arr
[
$key
][
'is_del'
]
=
1
;
$agent_arr
[
$key
][
'update_time'
]
=
$date
;
$key
++
;
if
(
$type
==
2
)
{
...
...
@@ -75,8 +67,6 @@ class GHousesToAgents extends BaseModel
$agent_arr
[
$key
][
'agents_id'
]
=
$v
;
$agent_arr
[
$key
][
'houses_id'
]
=
$houses_id
;
$agent_arr
[
$key
][
'type'
]
=
$type
;
$agent_arr
[
$key
][
'create_time'
]
=
$this
->
date
;
$agent_arr
[
$key
][
'update_time'
]
=
$this
->
date
;
$key
++
;
if
(
$type
==
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