lip 3 maanden geleden
bovenliggende
commit
cbbccb200e
3 gewijzigde bestanden met toevoegingen van 16 en 11 verwijderingen
  1. 2 0
      app/admin/command/UserQueue.php
  2. 10 10
      app/admin/model/Config.php
  3. 4 1
      example.env

+ 2 - 0
app/admin/command/UserQueue.php

@@ -25,10 +25,12 @@ class UserQueue extends Command
 
 
     public function execute(Input $input, Output $output)
     public function execute(Input $input, Output $output)
     {
     {
+        $auto_cs_uid = getAutoCsUid();
         $where = [
         $where = [
             ['status', '=', 1],
             ['status', '=', 1],
             ['is_online', '=', 1],
             ['is_online', '=', 1],
             ['role', '=', 3],
             ['role', '=', 3],
+            ['user_id', '<>', $auto_cs_uid],
         ];
         ];
 
 
         while(true) {
         while(true) {

+ 10 - 10
app/admin/model/Config.php

@@ -18,18 +18,18 @@ class Config extends BaseModel
         Lang::setLangSet($language_code);
         Lang::setLangSet($language_code);
         $data = [
         $data = [
             'kefu_chat_type' => [
             'kefu_chat_type' => [
-                1 => Lang::get('顺序分配')
+                '1' => Lang::get('顺序分配')
             ],
             ],
             'user_vip_level' => [
             'user_vip_level' => [
-                1 => 1,
-                2 => 2,
-                3 => 3,
-                4 => 4,
-                5 => 5,
-                6 => 6,
-                7 => 7,
-                8 => 8,
-                9 => 9,
+                '1' => '1',
+                '2' => '2',
+                '3' => '3',
+                '4' => '4',
+                '5' => '5',
+                '6' => '6',
+                '7' => '7',
+                '8' => '8',
+                '9' => '9',
             ]
             ]
         ];
         ];
         if ($select) {
         if ($select) {

+ 4 - 1
example.env

@@ -15,6 +15,9 @@ API_STATUS = true
 ID = a1b2c3d4e5f
 ID = a1b2c3d4e5f
 SECRET = 1234sddsc56ssdfghjkl
 SECRET = 1234sddsc56ssdfghjkl
 
 
+#google翻译
+GOOGLE_KEY = 'AIzaSyCQmhmpEIm0ysoTznbm1NrDASovMxhmeSc'
+
 # thinkapi的令牌,目前只用于敏感词过滤,其他接口自行接入
 # thinkapi的令牌,目前只用于敏感词过滤,其他接口自行接入
 THINKAPI_TOKEN =
 THINKAPI_TOKEN =
 
 
@@ -54,7 +57,7 @@ PREFIX =
 
 
 视频封面截取配置,需要单独安装,宝塔安装默认地址为/www/server/ffmpeg/ffmpeg-6.1
 视频封面截取配置,需要单独安装,宝塔安装默认地址为/www/server/ffmpeg/ffmpeg-6.1
 [FFMPEG]
 [FFMPEG]
-BIN_PATH =
+BIN_PATH = /www/server/ffmpeg/ffmpeg-6.1
 
 
 [AES]
 [AES]
 TOKEN_KEY = tHTisd8USApxsdfnhTM
 TOKEN_KEY = tHTisd8USApxsdfnhTM