dever 4 年之前
父节点
当前提交
2b933cd7ed
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 1 1
      app/collection/database/info.php
  2. 5 0
      app/collection/lib/Core.php

+ 1 - 1
app/collection/database/info.php

@@ -529,7 +529,7 @@ $config = array
         (
             'type'      => 'varchar-100',
             'name'      => '分享标题-{name}为合集标题,{username}为当前合集用户名',
-            'default'   => '{username}请你看{name}',
+            'default'   => '',
             'desc'      => '分享标题',
             'match'     => 'option',
             'update'    => 'text',

+ 5 - 0
app/collection/lib/Core.php

@@ -173,6 +173,11 @@ class Core
             $day = 0;
         }
 
+        $page = Dever::db('collection/page')->one($page_id);
+        if ($page && $page['desc']) {
+            $index = $index + 1;
+        }
+
         $code = 'dlv1_' . $id. '_' . $parent_page_id . '_' . $page_id . '_' . $index . '_' . $times_id . '_' . $day . '_' . $uid . '_' . $ticket_id;
         
         if ($encode) {