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
a934d42a
Commit
a934d42a
authored
Dec 29, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app 模块安卓版本下载
parent
087725bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
14 deletions
+40
-14
Index.php
application/app/controller/Index.php
+39
-14
route.php
application/route.php
+1
-0
No files found.
application/app/controller/Index.php
View file @
a934d42a
<?php
<?php
namespace
app\app\controller
;
namespace
app\app\controller
;
use
app\model\AppVersion
;
use
app\model\HouseImgs
;
use
app\model\HouseImgs
;
use
app\model\HouseInfos
;
use
app\model\HouseInfos
;
use
think\Controller
;
use
think\Controller
;
...
@@ -11,45 +13,56 @@ class Index
...
@@ -11,45 +13,56 @@ class Index
protected
$db
;
protected
$db
;
protected
$dbImg
;
protected
$dbImg
;
protected
$appVersion
;
public
function
__construct
()
public
function
__construct
()
{
{
$this
->
db
=
new
HouseInfos
();
$this
->
db
=
new
HouseInfos
();
$this
->
dbImg
=
new
HouseImgs
();
$this
->
dbImg
=
new
HouseImgs
();
$this
->
appVersion
=
new
AppVersion
();
}
}
public
function
index
()
public
function
index
()
{
{
return
view
(
'index/index'
);
return
view
(
'index/index'
);
}
}
public
function
share_detail
()
public
function
share_detail
()
{
{
return
view
(
'index/share_detail'
);
return
view
(
'index/share_detail'
);
}
}
public
function
share_register
()
public
function
share_register
()
{
{
return
view
(
'index/share_register'
);
return
view
(
'index/share_register'
);
}
}
public
function
agent_detail
()
public
function
agent_detail
()
{
{
return
view
(
'index/agent_detail'
);
return
view
(
'index/agent_detail'
);
}
}
public
function
agreement
()
public
function
agreement
()
{
{
return
view
(
'index/agreement'
);
return
view
(
'index/agreement'
);
}
}
public
function
agreement_app
()
public
function
agreement_app
()
{
{
return
view
(
'index/agreement_app'
);
return
view
(
'index/agreement_app'
);
}
}
public
function
more_pingjia
()
public
function
more_pingjia
()
{
{
return
view
(
'index/more_pingjia'
);
return
view
(
'index/more_pingjia'
);
}
}
public
function
more_chengjiao
()
public
function
more_chengjiao
()
{
{
return
view
(
'index/more_chengjiao'
);
return
view
(
'index/more_chengjiao'
);
}
}
/**
/**
* 楼盘详情
* 楼盘详情
* @return \think\Response
* @return \think\Response
...
@@ -81,6 +94,18 @@ class Index
...
@@ -81,6 +94,18 @@ class Index
}
}
/**
* 获取最近版本号 安卓
* @return \think\Response
*/
public
function
getVersionNo
()
{
$versionResult
=
$this
->
appVersion
->
getVersion
(
"android"
);
return
$this
->
response
(
"200"
,
"request success"
,
$versionResult
);
}
/**
/**
* 输出返回数据
* 输出返回数据
* @param string $msg 提示消息内容
* @param string $msg 提示消息内容
...
...
application/route.php
View file @
a934d42a
...
@@ -22,6 +22,7 @@ Route::group('app', [
...
@@ -22,6 +22,7 @@ Route::group('app', [
'agreement'
=>
[
'app/index/agreement'
,
[
'method'
=>
'get'
]
],
'agreement'
=>
[
'app/index/agreement'
,
[
'method'
=>
'get'
]
],
'agreement_app'
=>
[
'app/index/agreement_app'
,
[
'method'
=>
'get'
]
],
'agreement_app'
=>
[
'app/index/agreement_app'
,
[
'method'
=>
'get'
]
],
'getShopDetails'
=>
[
'app/index/getShopDetail'
,
[
'method'
=>
'get | post'
]
],
'getShopDetails'
=>
[
'app/index/getShopDetail'
,
[
'method'
=>
'get | post'
]
],
'getVersionNo'
=>
[
'app/index/getVersionNo'
,
[
'method'
=>
'get | post'
]
],
]);
]);
...
...
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