wupengfei il y a 2 ans
Parent
commit
708b9a8f30
2 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 2 2
      .idea/workspace.xml
  2. 2 1
      application/common.php

+ 2 - 2
.idea/workspace.xml

@@ -3,7 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/view/article_report/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/article_report/index.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -267,7 +267,7 @@
       <workItem from="1679014817602" duration="22183000" />
       <workItem from="1679287382176" duration="14525000" />
       <workItem from="1679359715116" duration="25702000" />
-      <workItem from="1679532313623" duration="13670000" />
+      <workItem from="1679532313623" duration="14360000" />
     </task>
     <servers />
   </component>

+ 2 - 1
application/common.php

@@ -417,7 +417,8 @@ function create_qrcode($id,$module = 'activity')
 function get_short_name($name)
 {
     if(strlen($name) <= 8) return $name;
-    return  substr_replace($name,'****',3,4);
+
+    return  substr_replace($name,'****',3,strlen($name)-4);
 }