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
9637d40a
Commit
9637d40a
authored
May 08, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开盘排序
parent
c5dc05fd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
BSquareSort.php
application/model/BSquareSort.php
+5
-3
route.php
application/route.php
+1
-1
SquareTask.php
application/task/controller/SquareTask.php
+4
-0
No files found.
application/model/BSquareSort.php
View file @
9637d40a
...
@@ -22,15 +22,17 @@ class BSquareSort extends BaseModel
...
@@ -22,15 +22,17 @@ class BSquareSort extends BaseModel
* @param $data
* @param $data
* @param $id
* @param $id
* @param array $where
* @param array $where
* @return mixed
* @return int|string
* @throws \think\Exception
* @throws \think\exception\PDOException
* User HuJun
* User HuJun
* Date 19-5-
7 下午5:54
* Date 19-5-
8 上午10:03
*/
*/
public
function
updateData
(
$data
,
$id
,
$where
=
[])
{
public
function
updateData
(
$data
,
$id
,
$where
=
[])
{
if
(
$id
>
0
)
{
if
(
$id
>
0
)
{
$where
[
'id'
]
=
$id
;
$where
[
'id'
]
=
$id
;
}
}
return
$this
->
db_
->
where
(
$where
)
->
upate
(
$data
);
return
$this
->
db_
->
where
(
$where
)
->
up
d
ate
(
$data
);
}
}
/**
/**
...
...
application/route.php
View file @
9637d40a
...
@@ -633,7 +633,7 @@ Route::group('task', [
...
@@ -633,7 +633,7 @@ Route::group('task', [
'moveFollowUpList'
=>
[
'task/FollowUpTask/moveFollowUpList'
,
[
'method'
=>
'get'
]],
'moveFollowUpList'
=>
[
'task/FollowUpTask/moveFollowUpList'
,
[
'method'
=>
'get'
]],
'frostAgent'
=>
[
'task/FrostAgentTask/frostAgent'
,
[
'method'
=>
'get'
]],
'frostAgent'
=>
[
'task/FrostAgentTask/frostAgent'
,
[
'method'
=>
'get'
]],
'squareBackUp'
=>
[
'task/
squareBackUp/readRedis'
,
[
'method'
=>
'get'
]],
'squareBackUp'
=>
[
'task/
SquareTask/squareBackUp'
,
[
'method'
=>
'get'
]],
//redis备份开盘排序
'updateActivityStatus'
=>
[
'task/UpdateActivityTask/updateActivityStatus'
,
[
'method'
=>
'get'
]],
'updateActivityStatus'
=>
[
'task/UpdateActivityTask/updateActivityStatus'
,
[
'method'
=>
'get'
]],
...
...
application/task/controller/SquareTask.php
View file @
9637d40a
...
@@ -23,14 +23,18 @@ class SquareTask
...
@@ -23,14 +23,18 @@ class SquareTask
$sort_service
=
new
SquareSortService
();
$sort_service
=
new
SquareSortService
();
$look_num
=
$sort_service
->
getLookData
();
//看盘数量
$look_num
=
$sort_service
->
getLookData
();
//看盘数量
if
(
$look_num
)
{
foreach
(
$look_num
as
$k
=>
$v
)
{
foreach
(
$look_num
as
$k
=>
$v
)
{
$square_id
[]
=
$k
;
$square_id
[]
=
$k
;
}
}
}
$comment
=
$sort_service
->
getCommentData
();
//最后评论时间
$comment
=
$sort_service
->
getCommentData
();
//最后评论时间
if
(
$comment
)
{
foreach
(
$comment
as
$k
=>
$v
)
{
foreach
(
$comment
as
$k
=>
$v
)
{
$square_id
[]
=
$k
;
$square_id
[]
=
$k
;
}
}
}
if
(
empty
(
$square_id
))
{
if
(
empty
(
$square_id
))
{
return
;
return
;
...
...
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