star7th 8 жил өмнө
parent
commit
1790b4c6c8

+ 7 - 2
Application/Home/Controller/PageController.class.php

@@ -169,8 +169,13 @@ class PageController extends BaseController {
                D("PageHistory")->where(" page_id = '$page_id' and page_history_id < ".$ret[19]['page_history_id'] )->delete();
             }
 
-            //更新项目时间
-            D("Item")->where(" item_id = '$item_id' ")->save(array("last_update_time"=>time()));
+            //如果是单页项目,则将页面标题设置为项目名
+            $item_array = D("Item")->where(" item_id = '$item_id' ")->find();
+            if ($item_array['item_type'] == 2 ) {
+                D("Item")->where(" item_id = '$item_id' ")->save(array("last_update_time"=>time(),"item_name"=>$page_title));
+            }else{
+                D("Item")->where(" item_id = '$item_id' ")->save(array("last_update_time"=>time()));
+            }
 
             $return = D("Page")->where(" page_id = '$page_id' ")->find();
         }else{

+ 1 - 1
Application/Home/View/User/login.html

@@ -8,7 +8,7 @@
         <input type="text" class="input-block-level"  name="username" placeholder="{$Think.Lang.username}">
         <input type="password" class="input-block-level" name="password" placeholder="{$Think.Lang.password}">
         <if  condition="$CloseVerify != 1">
-        <input type="text" class="input-block-level"  name="v_code" placeholder="{$Think.Lang.verification_code}">
+        <input type="text" class="input-block-level"  autocomplete="off" name="v_code" placeholder="{$Think.Lang.verification_code}">
         <div class="control-group">
           <div class="controls">
             <img src="#" id="v_code_img">

+ 1 - 1
Application/Home/View/User/register.html

@@ -9,7 +9,7 @@
         <input type="password" class="input-block-level" name="password"  placeholder="{$Think.Lang.password}">
         <input type="password" class="input-block-level" name="confirm_password"  placeholder="{$Think.Lang.password_again}">
         <if  condition="$CloseVerify != 1">
-        <input type="text" class="input-block-level" name="v_code"  placeholder="{$Think.Lang.verification_code}">
+        <input type="text" class="input-block-level" autocomplete="off" name="v_code"  placeholder="{$Think.Lang.verification_code}">
         <div class="control-group">
           <div class="controls">
             <img src="#" id="v_code_img">

+ 1 - 1
composer.json

@@ -5,7 +5,7 @@
     "description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
     "keywords": ["showdoc","documents","Api"],
     "homepage": "https://github.com/star7th/showdoc",
-    "version":"v1.4.2",
+    "version":"v1.4.3",
     "license": "Apache-2.0",
     "authors": [
         {