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
f018619d
Commit
f018619d
authored
Mar 25, 2019
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
2455bfc7
1db44805
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
13 deletions
+12
-13
Shop.php
application/api_broker/controller/Shop.php
+0
-1
User.php
application/api_broker/controller/User.php
+3
-3
SubletModel.php
application/model/SubletModel.php
+1
-1
Users.php
application/model/Users.php
+7
-5
KillOutTimeSql.php
application/task/controller/KillOutTimeSql.php
+1
-3
No files found.
application/api_broker/controller/Shop.php
View file @
f018619d
...
@@ -60,7 +60,6 @@ class Shop extends Basic
...
@@ -60,7 +60,6 @@ class Shop extends Basic
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
big_log
(
json_encode
(
$params
));
/* $params = array(
/* $params = array(
"site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索 5b报备
"site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索 5b报备
// "title" => "vv", //1,2 external_title ,3,4internal_title
// "title" => "vv", //1,2 external_title ,3,4internal_title
...
...
application/api_broker/controller/User.php
View file @
f018619d
...
@@ -514,7 +514,7 @@ class User extends Basic
...
@@ -514,7 +514,7 @@ class User extends Basic
$field
=
'id,user_nick,agent_id,vip,create_time'
;
$field
=
'id,user_nick,agent_id,vip,create_time'
;
$user
=
new
Users
();
$user
=
new
Users
();
$user_res
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$
limit
=
1
,
$order
,
$type
);
$user_res
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$
order
,
$type
,
0
,
1
);
if
(
!
$user_res
)
{
if
(
!
$user_res
)
{
return
$this
->
response
(
"201"
,
"查无数据"
,
[
'user_id'
=>
$params
[
'user_id'
]
]);
return
$this
->
response
(
"201"
,
"查无数据"
,
[
'user_id'
=>
$params
[
'user_id'
]
]);
}
}
...
@@ -553,9 +553,9 @@ class User extends Basic
...
@@ -553,9 +553,9 @@ class User extends Basic
$where
[
'city'
]
=
trim
(
$this
->
city
);
$where
[
'city'
]
=
trim
(
$this
->
city
);
$field
=
'max(id) as max_id'
;
$field
=
'max(id) as max_id'
;
$order
=
'id asc'
;
$order
=
'id asc'
;
$max_id
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$
limit
=
''
,
$order
,
$type
);
$max_id
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$
order
,
$type
,
0
,
1
);
$field
=
'MIN(id) as min_id'
;
$field
=
'MIN(id) as min_id'
;
$min_id
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$limit
=
''
,
$order
,
$type
);
$min_id
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$order
,
$type
,
0
,
1
);
return
$this
->
response
(
"200"
,
"success!"
,
[
return
$this
->
response
(
"200"
,
"success!"
,
[
'user_id'
=>
$user_res
[
0
][
'id'
],
'user_id'
=>
$user_res
[
0
][
'id'
],
'max_user_id'
=>
$max_id
[
0
][
'max_id'
],
'max_user_id'
=>
$max_id
[
0
][
'max_id'
],
...
...
application/model/SubletModel.php
View file @
f018619d
...
@@ -54,7 +54,7 @@ class SubletModel extends BaseModel
...
@@ -54,7 +54,7 @@ class SubletModel extends BaseModel
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
page
(
$pageNo
)
->
select
();
->
select
();
big_log
(
$this
->
getLastSql
());
//
big_log($this->getLastSql());
return
$result
;
return
$result
;
}
}
...
...
application/model/Users.php
View file @
f018619d
...
@@ -875,7 +875,7 @@ class Users extends Model
...
@@ -875,7 +875,7 @@ class Users extends Model
}
}
public
function
getLastOrNextUserID
(
$where
,
$field
,
$
limit
,
$order
,
$type
)
public
function
getLastOrNextUserID
(
$where
,
$field
,
$
order
,
$type
,
$page
,
$limit
)
{
{
if
(
$type
==
1
)
{
if
(
$type
==
1
)
{
...
@@ -884,6 +884,7 @@ class Users extends Model
...
@@ -884,6 +884,7 @@ class Users extends Model
->
where
(
$where
)
->
where
(
$where
)
->
order
(
$order
)
->
order
(
$order
)
->
limit
(
$limit
)
->
limit
(
$limit
)
->
page
(
$page
)
->
select
();
->
select
();
}
elseif
(
$type
==
2
)
{
}
elseif
(
$type
==
2
)
{
$result
=
$this
->
field
(
$field
)
$result
=
$this
->
field
(
$field
)
...
@@ -892,6 +893,7 @@ class Users extends Model
...
@@ -892,6 +893,7 @@ class Users extends Model
->
where
(
$where
)
->
where
(
$where
)
->
order
(
$order
)
->
order
(
$order
)
->
limit
(
$limit
)
->
limit
(
$limit
)
->
page
(
$page
)
->
select
();
->
select
();
}
elseif
(
$type
==
3
)
{
}
elseif
(
$type
==
3
)
{
$result
=
$this
->
field
(
$field
)
$result
=
$this
->
field
(
$field
)
...
@@ -900,6 +902,7 @@ class Users extends Model
...
@@ -900,6 +902,7 @@ class Users extends Model
->
where
(
$where
)
->
where
(
$where
)
->
order
(
$order
)
->
order
(
$order
)
->
limit
(
$limit
)
->
limit
(
$limit
)
->
page
(
$page
)
->
select
();
->
select
();
}
elseif
(
$type
==
4
)
{
}
elseif
(
$type
==
4
)
{
$result
=
$this
->
field
(
$field
)
$result
=
$this
->
field
(
$field
)
...
@@ -909,17 +912,16 @@ class Users extends Model
...
@@ -909,17 +912,16 @@ class Users extends Model
->
where
(
'a.referrer_source'
,
20
)
->
where
(
'a.referrer_source'
,
20
)
->
order
(
$order
)
->
order
(
$order
)
->
limit
(
$limit
)
->
limit
(
$limit
)
->
page
(
$page
)
->
select
();
->
select
();
}
else
{
}
else
{
$result
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
$result
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
where
(
$where
)
->
where
(
$where
)
->
order
(
$order
)
->
order
(
$order
)
->
limit
(
$limit
)
->
page
(
$page
)
->
select
();
->
select
();
}
}
//echo $this->getLastSql();
//dump($this->getLastSql());exit;
return
$result
;
return
$result
;
}
}
...
...
application/task/controller/KillOutTimeSql.php
View file @
f018619d
...
@@ -18,11 +18,9 @@ class KillOutTimeSql{
...
@@ -18,11 +18,9 @@ class KillOutTimeSql{
$result
=
$model
->
query
(
$sql
);
$result
=
$model
->
query
(
$sql
);
if
(
$result
){
if
(
$result
){
foreach
(
$result
as
$item
){
foreach
(
$result
as
$item
){
$kill_sql
=
$item
[
"kill_sql"
];
$log
=
"out_time_sql :"
.
$item
[
"info"
];
$log
=
"out_time_sql :"
.
$item
[
"info"
];
big_log
(
$log
);
big_log
(
$log
);
$model
->
query
(
$kill_sql
);
$model
->
query
(
$item
[
"kill_sql"
]);
$kill_sql
=
""
;
}
}
}
}
...
...
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