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
328396a0
Commit
328396a0
authored
May 09, 2019
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9504ab69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SquareSortService.php
application/api_broker/service/SquareSortService.php
+1
-1
BSquare.php
application/model/BSquare.php
+1
-1
No files found.
application/api_broker/service/SquareSortService.php
View file @
328396a0
...
@@ -43,7 +43,7 @@ class SquareSortService
...
@@ -43,7 +43,7 @@ class SquareSortService
$look_num
=
$this
->
redis
->
zScore
(
self
::
LOOK_NUM_KEY
,
$s_id
);
$look_num
=
$this
->
redis
->
zScore
(
self
::
LOOK_NUM_KEY
,
$s_id
);
$this
->
redis
->
zRem
(
self
::
SORT_KEY
.
$site_id
,
$s_id
);
$this
->
redis
->
zRem
(
self
::
SORT_KEY
.
$site_id
,
$s_id
);
$this
->
redis
->
zRem
(
self
::
SORT_KEY_CREAM
.
$site_id
,
$s_id
);
$this
->
redis
->
zRem
(
self
::
SORT_KEY_CREAM
.
$site_id
,
$s_id
);
if
(
$look_num
>
3
)
{
if
(
$look_num
>
=
3
)
{
$m_square
=
new
BSquare
();
$m_square
=
new
BSquare
();
$m_square
->
updateStatus
([
'id'
=>
$s_id
],
[
'is_cream'
=>
1
]);
$m_square
->
updateStatus
([
'id'
=>
$s_id
],
[
'is_cream'
=>
1
]);
$this
->
redis
->
zAdd
(
self
::
SORT_KEY_CREAM
.
$site_id
,
time
(),
$s_id
);
$this
->
redis
->
zAdd
(
self
::
SORT_KEY_CREAM
.
$site_id
,
time
(),
$s_id
);
...
...
application/model/BSquare.php
View file @
328396a0
...
@@ -40,7 +40,7 @@ class BSquare extends Model
...
@@ -40,7 +40,7 @@ class BSquare extends Model
$result
=
Db
::
table
(
$this
->
table
)
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
field
(
$field
)
->
where
(
$params
)
->
where
(
$params
)
->
order
(
"FIELD(id,
$ids
)"
)
->
order
(
"
is_cream asc,
FIELD(id,
$ids
)"
)
->
select
();
->
select
();
return
$result
;
return
$result
;
}
}
...
...
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