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
487fa672
Commit
487fa672
authored
Apr 28, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6c5c4e1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
Shop.php
application/api/controller/Shop.php
+2
-1
GLabels.php
application/model/GLabels.php
+19
-0
No files found.
application/api/controller/Shop.php
View file @
487fa672
...
...
@@ -11,6 +11,7 @@ namespace app\api\controller;
*/
use
app\api\extend\Basic
;
use
app\model\AttentionModel
;
use
app\model\GLabels
;
use
app\model\HouseImgs
;
use
app\model\HouseInfos
;
use
app\model\Labels
;
...
...
@@ -27,7 +28,7 @@ class Shop extends Basic
parent
::
__construct
(
$request
);
$this
->
db
=
new
HouseInfos
();
$this
->
dbImg
=
new
HouseImgs
();
$this
->
labels
=
new
Labels
();
$this
->
labels
=
new
G
Labels
();
$this
->
attentionModel
=
new
AttentionModel
();
}
...
...
application/model/GLabels.php
View file @
487fa672
...
...
@@ -6,4 +6,23 @@ namespace app\model;
class
GLabels
extends
BaseModel
{
// 设置当前模型对应的完整数据表名称
protected
$table
=
'g_labels'
;
protected
$db
;
/**
* GLabels constructor.
*/
function
__construct
()
{
$this
->
db
=
Db
(
$this
->
table
);
}
public
function
getLabels
()
{
return
$data
=
$this
->
db
->
field
(
"id,name"
)
->
select
();
}
}
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