Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
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
吴贤德
SooonerHotel
Commits
5a6287d2
Commit
5a6287d2
authored
5 years ago
by
吴贤德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API :修复分前端配置接口设备列表查询问题
parent
95781e9b
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
FrontAction.class.php
SooonerHotel/App/Lib/Action/Api/FrontAction.class.php
+1
-1
No files found.
SooonerHotel/App/Lib/Action/Api/FrontAction.class.php
View file @
5a6287d2
...
...
@@ -48,7 +48,7 @@ class FrontAction extends Action
//设备
$sql
=
"SELECT device.code,device.type,device.ip,device.port,device.virtual_ip,device.netcard,storage.path,storage.size"
.
" FROM sh_hotel_device device,sh_hotel_device_storage storage"
.
" WHERE device.hotel_id=
1
AND device.status=0 AND storage.device_id=device.id AND storage.status=0;"
;
.
" WHERE device.hotel_id=
"
.
$config
[
"hid"
]
.
"
AND device.status=0 AND storage.device_id=device.id AND storage.status=0;"
;
$arr
=
M
()
->
query
(
$sql
);
foreach
(
$arr
as
$item
){
$config
[
"devices"
][
$item
[
"code"
]][
"type"
]
=
$item
[
"type"
];
...
...
This diff is collapsed.
Click to expand it.
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