moshaorui 4 months ago
parent
commit
6f5c982e50
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/helpers.php

+ 3 - 0
app/helpers.php

@@ -310,6 +310,9 @@ if (!function_exists('curlGet')) {
 
 /*
  * 截取字符函数
+ * $string 要截取的字符串
+ * $length 截取长度
+ * $append 后缀
  */
 if (!function_exists('truncateString')) {
     function truncateString($string, $length = 30, $append = '') {