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
bc88aab0
Commit
bc88aab0
authored
Aug 02, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
强制更细
parent
edbfcca2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
Version.php
application/index/controller/Version.php
+4
-0
index.html
application/index/view/version/index.html
+20
-1
AppVersion.php
application/model/AppVersion.php
+2
-2
No files found.
application/index/controller/Version.php
View file @
bc88aab0
...
@@ -54,6 +54,7 @@ class Version extends Basic
...
@@ -54,6 +54,7 @@ class Version extends Basic
$param
[
"intro"
]
=
$_POST
[
"intro"
];
$param
[
"intro"
]
=
$_POST
[
"intro"
];
$param
[
"type"
]
=
$_POST
[
"type"
];
$param
[
"type"
]
=
$_POST
[
"type"
];
$param
[
"app_path"
]
=
$_POST
[
"app_path"
];
$param
[
"app_path"
]
=
$_POST
[
"app_path"
];
$param
[
"is_update"
]
=
$_POST
[
"is_update"
];
if
(
!
isset
(
$param
[
"version_no"
])
||
!
isset
(
$param
[
"type"
]))
{
if
(
!
isset
(
$param
[
"version_no"
])
||
!
isset
(
$param
[
"type"
]))
{
$this
->
response
(
"101"
,
"版本号或app类型不能为空"
);
$this
->
response
(
"101"
,
"版本号或app类型不能为空"
);
...
@@ -61,6 +62,9 @@ class Version extends Basic
...
@@ -61,6 +62,9 @@ class Version extends Basic
if
(
$param
[
"type"
]
==
0
||
$param
[
"type"
]
==
2
&&
isset
(
$param
[
"app_path"
]))
{
if
(
$param
[
"type"
]
==
0
||
$param
[
"type"
]
==
2
&&
isset
(
$param
[
"app_path"
]))
{
$this
->
response
(
"101"
,
"安卓请上传安装包"
);
$this
->
response
(
"101"
,
"安卓请上传安装包"
);
}
}
if
(
!
isset
(
$param
[
"is_update"
]))
{
$this
->
response
(
"101"
,
"是否强制更新为必填"
);
}
$param
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$param
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$param
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$param
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$result
=
$this
->
appVersion
->
addVersion
(
$param
);
$result
=
$this
->
appVersion
->
addVersion
(
$param
);
...
...
application/index/view/version/index.html
View file @
bc88aab0
...
@@ -66,6 +66,24 @@
...
@@ -66,6 +66,24 @@
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
style=
"text-align: right"
>
强制更新:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"radio"
style=
"display: inline-block"
>
<label>
<input
type=
"radio"
name=
"optionsRadios"
id=
"is_update_1"
value=
"0"
checked
>
强制更新
</label>
</div>
<div
class=
"radio"
style=
"display: inline-block"
>
<label>
<input
type=
"radio"
name=
"optionsRadios"
id=
"is_update_2"
value=
"1"
>
非强制更新
</label>
</div>
</div>
</div>
<div
class=
"form-group show_select_page"
>
<div
class=
"form-group show_select_page"
>
<!--<label class="col-sm-3 control-label" style="text-align: right">上传包:</label>
<!--<label class="col-sm-3 control-label" style="text-align: right">上传包:</label>
...
@@ -107,8 +125,9 @@
...
@@ -107,8 +125,9 @@
<th
class=
"text-center"
style=
"width:15%;"
>
发布时间
</th>
<th
class=
"text-center"
style=
"width:15%;"
>
发布时间
</th>
<th
class=
"text-center"
style=
"width:8%;"
>
app类型
</th>
<th
class=
"text-center"
style=
"width:8%;"
>
app类型
</th>
<th
class=
"text-center"
style=
"width:8%;"
>
版本号
</th>
<th
class=
"text-center"
style=
"width:8%;"
>
版本号
</th>
<th
class=
"text-center"
style=
"width:5%;"
>
强制更新
</th>
<th
class=
"text-center"
style=
"width:14%;"
>
下载地址
</th>
<th
class=
"text-center"
style=
"width:14%;"
>
下载地址
</th>
<th
class=
"text-center"
style=
"width:5
5
%;"
>
发布简述
</th>
<th
class=
"text-center"
style=
"width:5
0
%;"
>
发布简述
</th>
</tr>
</tr>
</thead>
</thead>
<tbody
id=
"sublet_list"
class=
"text-center"
>
<tbody
id=
"sublet_list"
class=
"text-center"
>
...
...
application/model/AppVersion.php
View file @
bc88aab0
...
@@ -23,7 +23,7 @@ class AppVersion extends Model
...
@@ -23,7 +23,7 @@ class AppVersion extends Model
$param
[
"type"
]
=
$type
;
$param
[
"type"
]
=
$type
;
$param
[
"is_del"
]
=
0
;
$param
[
"is_del"
]
=
0
;
// return $this->field("id,version_no,type,create_time,intro,CONCAT('".CK_IMG_URL."' , app_path) as app_path")
// return $this->field("id,version_no,type,create_time,intro,CONCAT('".CK_IMG_URL."' , app_path) as app_path")
return
$this
->
field
(
"id,version_no,type,create_time,intro, app_path"
)
return
$this
->
field
(
"id,version_no,type,create_time,intro, app_path
,is_update
"
)
->
where
(
$param
)
->
where
(
$param
)
->
order
(
"id desc"
)
->
order
(
"id desc"
)
->
limit
(
1
)
->
limit
(
1
)
...
@@ -37,7 +37,7 @@ class AppVersion extends Model
...
@@ -37,7 +37,7 @@ class AppVersion extends Model
public
function
getVersionList
()
public
function
getVersionList
()
{
{
$param
[
"is_del"
]
=
0
;
$param
[
"is_del"
]
=
0
;
return
$this
->
field
(
"id,version_no,IF(type = 1,'ios','android') as type ,create_time,intro,app_path"
)
return
$this
->
field
(
"id,version_no,IF(type = 1,'ios','android') as type ,create_time,intro,app_path
,is_update
"
)
->
where
(
$param
)
->
where
(
$param
)
->
order
(
"id desc"
)
->
order
(
"id desc"
)
->
select
();
->
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