修正主题获取swipe的bug

修正初始化
This commit is contained in:
muzi 2023-02-11 16:22:36 +08:00
parent 57e2893451
commit db94bd17b0
22 changed files with 462 additions and 397 deletions

View File

@ -114,7 +114,7 @@ class Document extends BaseModel
if ($data['is_hot']) $data['is_hot'] = 1; if ($data['is_hot']) $data['is_hot'] = 1;
if ($data['display']) $data['display'] = 1; if ($data['display']) $data['display'] = 1;
if ($data['is_top']) $data['is_top'] = 1; if ($data['is_top']) $data['is_top'] = 1;
if ($data['is_jump']) $data['is_jump'] = 1; if (!empty($data['is_jump'])) $data['is_jump'] = 1;
//判断是否主键冲突 //判断是否主键冲突
$info = $this->where("alias", $data['alias'])->find(); $info = $this->where("alias", $data['alias'])->find();
if ($info && (!empty($data['id']) && $info->id != $data['id'])) { if ($info && (!empty($data['id']) && $info->id != $data['id'])) {

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

View File

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 257 KiB

View File

@ -269,6 +269,7 @@
</div> </div>
</main> </main>
{include file="public/footer" /} {include file="public/footer" /}
<script>set.is_home == 1</script>
</div> </div>
</body> </body>
</html> </html>

View File

@ -48,7 +48,7 @@
var set = { var set = {
"is_single": "", "is_single": "",
"is_page": "", "is_page": "",
"is_home": "1", "is_home": "0",
"ajaxurl": "{:url('/index/index/index')}", "ajaxurl": "{:url('/index/index/index')}",
"logourl": "{:web_config('logo')}", "logourl": "{:web_config('logo')}",
"imgurl": "__IMG__/", "imgurl": "__IMG__/",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB