mirror of https://github.com/1099438829/apeblog
修正请求问题
This commit is contained in:
parent
d5bcbc3c98
commit
e901688c11
|
|
@ -58,7 +58,7 @@ class Category extends AuthController
|
|||
{
|
||||
$data = Util::postMore([
|
||||
['title', ''],
|
||||
['en_title', ''],
|
||||
['alias', ''],
|
||||
['type', ''],
|
||||
['pid', 0],
|
||||
['meta_title', ''],
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label>别名</label>
|
||||
<input type="text" class="form-control" id="en_title" name="en_title" value=""
|
||||
<input type="text" class="form-control" id="alias" name="alias" value=""
|
||||
placeholder="别名"/>
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@
|
|||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label>别名</label>
|
||||
<input type="text" class="form-control" id="en_title" name="en_title"
|
||||
value="{$info.en_title}" placeholder="别名"/>
|
||||
<input type="text" class="form-control" id="alias" name="alias"
|
||||
value="{$info.alias}" placeholder="别名"/>
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label for="pid">上级分类</label>
|
||||
|
|
|
|||
|
|
@ -420,9 +420,10 @@ function get_route_query()
|
|||
function make_category_url($item)
|
||||
{
|
||||
if ((int)$item['type'] == 0) {
|
||||
return url('article/lists', ['id'=>$item['alias']?:$item['id']])->build();
|
||||
return url('article/lists', ['id'=>$item['id']])->build();
|
||||
// return url('article/lists', ['id'=>$item['alias']?:$item['id']])->build();
|
||||
} elseif ((int)$item['type'] == 1) {
|
||||
return url('article/lists', ['id'=>$item['alias']?:$item['id']])->build();
|
||||
return url('article/lists', ['id'=>$item['id']])->build();
|
||||
} elseif ((int)$item['type'] == 2) {
|
||||
return $item['link_str'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue