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