lizhen_gitee vor 3 Monaten
Ursprung
Commit
c16d9276cc
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      application/api/controller/Usergreet.php

+ 4 - 4
application/api/controller/Greet.php → application/api/controller/Usergreet.php

@@ -27,9 +27,9 @@ use TencentCloud\Iai\V20200303\IaiClient;
 use TencentCloud\Iai\V20200303\Models\CompareFaceRequest;
 
 /**
- * 打招呼
+ * 女性设置自己的打招呼
  */
-class Greet extends Api
+class Usergreet extends Api
 {
     protected $noNeedLogin = [''];
     protected $noNeedRight = '*';
@@ -49,14 +49,14 @@ class Greet extends Api
             $this->error('请设置打招呼内容');
         }
         if (iconv_strlen($content, 'utf-8') > 255) {
-            $this->error('打招呼内容最多255位');
+            $this->error('打招呼内容太长了');
         }
         if ($type == 1) {
             if ($title === '') {
                 $this->error('请输入语音名称');
             }
             if (iconv_strlen($title, 'utf-8') > 50) {
-                $this->error('语音名称最多50字');
+                $this->error('语音名称太长了');
             }
             if (!$duration) {
                 $this->error('参数缺失');