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
dd645162
Commit
dd645162
authored
Aug 02, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
710af31d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
Version.php
application/api/controller/Version.php
+15
-0
route.php
application/route.php
+1
-0
No files found.
application/api/controller/Version.php
View file @
dd645162
...
...
@@ -44,4 +44,18 @@ class Version extends Basic
$versionResult
=
$this
->
appVersion
->
getVersion
(
$type
);
return
$this
->
response
(
"200"
,
"request success"
,
$versionResult
);
}
/**
* 获取最近版本号
* @return \think\Response
*/
public
function
getVersionNoV2
()
{
$type
=
$this
->
params
[
"type"
];
//0 c端安卓 1c端苹果 2b端安卓 3b端苹果
if
(
isset
(
$type
)){
$this
->
response
(
"101"
,
"请求的设备类型不能为空"
);
}
$versionResult
=
$this
->
appVersion
->
getVersion
(
$type
);
return
$this
->
response
(
"200"
,
"request success"
,
$versionResult
);
}
}
\ No newline at end of file
application/route.php
View file @
dd645162
...
...
@@ -108,6 +108,7 @@ Route::group('index', [
//版本管理
'version'
=>
[
'index/version/index'
,
[
'method'
=>
'get'
]
],
'getVersionNo'
=>
[
'index/version/getVersionNo'
,
[
'method'
=>
'post'
]
],
'getVersionNoV2'
=>
[
'index/version/getVersionNoV2'
,
[
'method'
=>
'post'
]
],
'getVersionList'
=>
[
'index/version/getVersionList'
,
[
'method'
=>
'post'
]
],
'addVersion'
=>
[
'index/version/addVersion'
,
[
'method'
=>
'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