lip пре 3 месеци
родитељ
комит
a030e62673
3 измењених фајлова са 324 додато и 0 уклоњено
  1. 6 0
      app/common/controller/User.php
  2. 159 0
      app/lang/en.php
  3. 159 0
      app/lang/zh.php

+ 6 - 0
app/common/controller/User.php

@@ -45,6 +45,12 @@ class User
 
     //客户端登录
     public function login(){
+
+
+        echo lang('im.manageRedo',[],'zh');
+        echo \think\facade\Lang::get('im.manageRedo',[],'zh');die;
+        // echo lang('im.manageRedo');die;
+
         $params=request()->param();
         $where['role'] = 0;
         if (empty($params['account']) || empty($params['uid']) || empty($params['from'])) {

+ 159 - 0
app/lang/en.php

@@ -1,5 +1,164 @@
 <?php
 return [
+    'system' => [  
+        'success' => 'Operation successful',  
+        'fail' => 'Operation failed',  
+        'error' => 'System error',  
+        'forbidden' => 'Access forbidden',  
+        'exist' => 'The record does not exist',  
+        'sendOK' => 'Sent successfully',  
+        'sendFail' => 'Sending failed',  
+        'delOk' => 'Deletion successful',  
+        'settingOk' => 'Settings updated successfully',  
+        'notNull' => 'Cannot be empty',  
+        'editOk' => 'Edit successful',  
+        'editFail' => 'Edit failed',  
+        'addOk' => 'Addition successful',  
+        // The original 'addFail' seems to be a typo, assuming it should be '添加失败' which translates to 'Addition failed'  
+        'addFail' => 'Addition failed',  
+        'joinOk' => 'Joining successful',  
+        'notAuth' => 'You do not have the permission to perform this operation!',  
+        'demoMode' => 'Modifications are not supported in demo mode',  
+        'parameterError' => 'Parameter error',  
+        'longTime' => 'Request timeout',  
+        'apiClose' => 'API is closed',  
+        'appIdError' => 'appId error',  
+        'signError' => 'Signature error',  
+        'tooFast'=>"You visited too fast!",
+        'notice'=>"System Notice",
+        'favor'=>"My Collection",
+        'message'=>"System Message",
+        'announce'=>"{:num} announcements",
+        'transFile'=>"Transfer your files",
+    ],
+    'messageType' => [  
+        'other' => "[Unsupported message type]",  
+        'image' => "[Image]",  
+        'emoji' => "[DIYemoji]",  
+        'voice' => "[Voice]",  
+        'video' => "[Video]",  
+        'file' => "[File]",  
+        'webrtcAudio' => "[Audio call request with you]",  
+        'webrtcVideo' => "[Video call request with you]",  
+    ],
+    'friend' => [  
+        'notAddOwn' => "You cannot add yourself as a friend",  
+        'already' => "You are already friends",  
+        'repeatApply' => "You have already sent a request, please wait for the other person to accept",  
+        'new' => "New friend",  
+        'apply' => "Has added you as a friend",  
+        'notApply' => "The request does not exist",  
+        'not' => "Friend does not exist",  
+        'newChat' => "You have been successfully added as friends, let's start chatting now! ",  
+        'limit' => "Your friends have reached the limit! ",  
+        'refuse' => "The other party has refused to add you as a friend! ",
+    ],  
+    'group' => [  
+        'name' => "Group chat",  
+        'notAuth' => "You do not have permission to perform this action. Only the group owner and administrators can make changes!",  
+        'userLimit' => "The number of members cannot exceed {:userMax} people!",  
+        'inviteLimit'=>'The number of people invited at a single time cannot exceed {:limit}! ',
+        'invite' => "{:username} has invited you to join the group chat",  
+        'removeUser'=>"You have been removed from Group chats! ",
+        'notCustom'=>"You are not a member of this group and have no right to send messages!",
+        'add' => "{:username} has created a group chat",  
+        'join'=>"{:username} join the group chat",
+        'atLeast' => "Please select at least two people!",  
+        'alreadyJoin' => "You are already in this group!",  
+        'exist' => "The group chat does not exist",
+        'notice'=>"Announcement",
+        'all'=>"All",
+        'noSpeak'=>"You have been banned from speaking, recovery time is {:time}",
+        'notSpeak'=>"Group chat has been banned!",
+        'limit'=>"You have been restricted from creating Group chats! ",
+    ],
+    'user' => [  
+        'exist' => "User does not exist",  
+        'codeErr' => "Verification code is incorrect!",  
+        'newCodeErr' => "New verification code is incorrect!",  
+        'passErr' => "Original password is incorrect!",  
+        'already' => "Account already exists",  
+        'registerOk' => "Registration successful",  
+        'loginOk' => "Login successful",  
+        'tokenFailure' => "TOKEN has expired!",  
+        'forbid' => "Your account has been disabled",  
+        'passError' => "Password is incorrect",  
+        'logoutOk' => "Logout successful!",  
+        'closeRegister' => "The system has disabled registration!",  
+        'inviteCode' => "Invite code has expired!",  
+        'accountVerify' => "Account must be a phone number or email",  
+        'waitMinute' => "Please try again after one minute!",  
+        "loginAccount" => "Login account",  
+        "registerAccount" => "Register account",  
+        "editPass" => "Change password",  
+        "editAccount" => "Edit account",  
+        'loginError' => 'Login information is incorrect. Please log in again.',  
+        'mustToken' => 'Please log in to the system first',  
+        'blacklist' => 'Login has expired. Please log in again',  
+        'expired' => 'Login has expired. Please log in again',
+        'notOwn' =>"Customer service can't be for him",
+        'loginLimit' =>"Your password has been wrong too many times. Please try again later! ",
+        'registerLimit'=>"Please register again in {:time} minutes"
+    ],  
+    'im' => [  
+        'forbidChat' => "Private chatting is currently prohibited!",  
+        'notFriend' => "You are not on their friend list, cannot send messages!",  
+        'friendNot' => "They are not your friend, cannot send messages!",  
+        'forwardLimit' => "Please select fewer than {:count} recipients for forwarding!",  
+        'exist' => "Message does not exist",  
+        'forwardRule' => "Forwarding failed for {:count} messages due to rule restrictions!",  
+        'forwardOk' => 'Message forwarded successfully',  
+        'you' => 'You',  
+        'other' => 'Recipient',  
+        'redoLimitTime' => "Cannot recall messages after {:time} minutes!",  
+        'redo' => " A message has been recalled",  
+        'manageRedo' => " A message has been recalled by (an admin)",
+        'msgContentLimit' => "Message content too long",
+        'sendTimeLimit'=>'The message sending interval is {:time} seconds!',
+        'forbidMsg'=>'[The message is suspected of violation and has been blocked]',
+    ],
+    'webRtc' => [  
+        'cancel' => 'Call has been canceled',  
+        'refuse' => 'Call has been rejected',  
+        'notConnected' => 'Call not connected',  
+        'duration' => 'Call duration: {:time}',  
+        'busy' => 'Busy',  
+        'other' => 'Operation performed on another device',  
+        'video' => 'Video call',  
+        'audio' => 'Audio call',  
+        'answer' => 'Answer call request',  
+        'exchange' => 'Data exchange in progress',  
+        'fail' => 'Call failed',  
+    ],  
+    'email' => [  
+        'input' => 'Please enter a valid email address',  
+        'testTitle' => "Test Email",  
+        'testContent' => "This is a test email. If you receive it, it means all your configurations are correct!",  
+    ],  
+    'task' => [  
+        'schedule' => 'Scheduled Task',  
+        'queue' => 'Message Queue',  
+        'worker' => 'Message Push',  
+        'clearStd' => 'Clear Logs',  
+        'null' => "Unknown task",  
+        'winRun' => "To start on Windows, please run the 'start_for_win.bat' file in the root directory",  
+        'alreadyRun' => "Process is already running",  
+        'startOk' => "Started successfully",  
+        'startFail' => "Failed to start",  
+        'notRun' => "Process is not running",  
+        'logExist' => "Log does not exist",  
+    ],  
+    'file' => [  
+        'preview' => "Preview file",  
+        'browserDown' => "Please use the browser to download",  
+        'exist' => "The file does not exist", // Note: This might be a duplicate of 'preview' and could be replaced with a more specific message  
+        'uploadLimit' => "File size cannot exceed {:size}MB",  
+        'typeNotSupport' => "File format is not supported",  
+        'uploadOk' => "Upload successful",  
+    ],  
+    'scan' => [  
+        'failure' => 'QR code has expired'  
+    ],
     "" => "",
     "ok" => 'Success',
     "OK" => "Success",

+ 159 - 0
app/lang/zh.php

@@ -1,5 +1,164 @@
 <?php
 return [
+    'system'=>[
+        'success'=>'操作成功',
+        'fail'=>'操作失败',
+        'error'=>'系统错误',
+        'forbidden'=>"禁止访问",
+        'exist'=>"记录不存在",
+        'sendOK'=>"发送成功",
+        'sendFail'=>"发送失败",
+        'delOk'=>"删除成功",
+        'settingOk'=>"设置成功",
+        'notNull'=>"不能为空",
+        'editOk'=>'修改成功',
+        'editFail'=>'修改失败',
+        'addOk'=>'添加成功',
+        'addFail'=>'添加成功',
+        'joinOk'=>'加入成功',
+        'notAuth'=>"您没有操作权限!",
+        'demoMode'=>"演示模式不支持修改",
+        'parameterError'=>"参数错误",
+        'longTime'=>'请求超时',
+        'apiClose'=>"接口已关闭",
+        'appIdError'=>'appId错误',
+        'signError'=>'签名错误',
+        'toofast'=>"您访问的太快了!",
+        'notice'=>"系统通知",
+        'favor'=>"我的收藏",
+        'message'=>"系统消息",
+        'announce'=>"{:num}条公告",
+        'transFile'=>"传输你的文件",
+        'ipError'=>'IP禁用',
+    ],
+    'messageType'=>[
+        'other'=>"[暂不支持的消息类型]",
+        'image'=>'[图片]',
+        'voice'=>'[语音]',
+        'emoji'=>'[自定义表情]',
+        'video'=>'[视频]',
+        'file'=>'[文件]',
+        'webrtcAudio'=>'[正在请求与您语音通话]',
+        'webrtcVideo'=>'[正在请求与您视频通话]',
+    ],
+    'friend'=>[
+        'notAddOwn'=>"不能添加自己为好友",
+        'already'=>"你们已经是好友了",
+        'repeatApply'=>"你已经申请过了,请等待对方同意",
+        'new'=>"新朋友",
+        "apply"=>"添加您为好友",
+        'notApply'=>"申请不存在",
+        'not'=>"好友不存在",
+        'newChat'=>"你们已经成功添加为好友,现在开始聊天吧!",
+        'limit'=>"您的好友已达上限!",
+        'refuse'=>"对方拒绝添加您为好友!",
+    ],
+    'group'=>[
+        'name'=>"群聊",
+        'notAuth'=>'你没有操作权限,只有群主和群管理员才可以修改!',
+        'userLimit'=>'人数不能超过{:userMax}人!',
+        'inviteLimit'=>'单次邀请人数不能超过{:limit}人!',
+        'invite'=>"{:username}邀请你加入群聊",
+        'removeUser'=>"您已被移出群聊!",
+        'notCustom'=>"您不是本群成员,无权发送消息!",
+        'add'=>"{:username}创建了群聊",
+        'join'=>"{:username}加入了群聊",
+        'atLeast'=>"请至少选择两人!",
+        'alreadyJoin'=>'您已经加入该群!',
+        'exist'=>"群聊不存在",
+        'notice'=>"群公告",
+        'all'=>"所有人",
+        'noSpeak'=>"您已被禁言,恢复时间为:{:time}",
+        'notSpeak'=>"群聊已禁言!",
+        'limit'=>"您已被限制创建群聊!",
+    ],
+    'user'=>[
+        'exist'=>"用户不存在",
+        'codeErr'=>'验证码不正确!',
+        'newCodeErr'=>'新验证码不正确!',
+        'passErr'=>"原密码不正确!",
+        'already'=>"账户已存在",
+        'registerOk'=>"注册成功",
+        'loginOk'=>"登陆成功",
+        'tokenFailure'=>"TOKEN已失效!",
+        'forbid'=>'您的账号已被禁用',
+        'passError'=>'密码错误',
+        'logoutOk'=>'退出成功!',
+        'closeRegister'=>'当前系统已关闭注册功能!',
+        'inviteCode'=>'邀请码已失效!',
+        'accountVerify'=>'账户必须为手机号或者邮箱',
+        'waitMinute'=>"请一分钟后再试!",
+        "loginAccount"=>"登录账户",
+        "registerAccount"=>"注册账户",
+        "editPass"=>"修改密码",
+        "editAccount"=>"修改账户",
+        'loginError' => '登陆信息有误 请重新登录',
+        'mustToken' => '请先登陆系统',
+        'blacklist' => '登陆已失效 请重新登陆',
+        'expired' => '登陆已过期 请重新登陆',
+        'notOwn' =>"客服不能为他本人",
+        'loginLimit' =>"您的密码错误次数过多,请稍后再试!",
+        'registerLimit'=>"请{:time}分钟后再注册!",
+    ],
+    'im'=>[
+        'forbidChat'=>"目前禁止用户私聊!",
+        'notFriend'=>"您不在TA的好友列表,不能发消息!",
+        'friendNot'=>"TA还不是您的好友,不能发消息!",
+        'forwardLimit'=>"请选择转发的用户或者数量不操作{:count}个!",
+        'exist'=>"消息不存在",
+        'forwardRule'=>"由于规则限制,转发失败{:count}条!",
+        'forwardOk'=>'转发成功',
+        'you'=>'你',
+        'other'=>'对方',
+        'redoLimitTime'=>"超过{:time}分钟不能撤回!",
+        'redo'=>"撤回了一条消息",
+        'manageRedo'=>'被(管理员)撤回了一条消息',
+        'msgContentLimit'=>'你发送的消息长度太长了!',
+        'sendTimeLimit'=>'消息发送时间间隔为 {:time} 秒!',
+        'forbidMsg'=>'[该消息涉嫌违规,已被屏蔽]',
+    ],
+    'webRtc'=>[
+        'cancel'=>'已取消通话',
+        'refuse'=>'已拒绝',
+        'notConnected'=>'未接通',
+        'duration'=>'通话时长:{:time}',
+        'busy'=>'忙线中',
+        'other'=>'其他端已操作',
+        'video'=>'视频通话',
+        'audio'=>'语音通话',
+        'answer'=>'接听通话请求',
+        'exchange'=>'数据交换中',
+        'fail'=>'通话失败',
+    ],
+    'email'=>[
+        'input'=>'请输入正确的邮箱',
+        'testTitle'=>"测试邮件",
+        'testContent'=>'这是一封测试邮件,当您收到之后表明您的所有配置都是正确的!',
+    ],
+    'task'=>[
+        'schedule' => '计划任务',
+        'queue' => '消息队列',
+        'worker' => '消息推送',
+        'clearStd' => '清理日志',
+        'null'=>"未知任务",
+        'winRun'=>"windows启动请运行根目录下的:start_for_win.bat",
+        'alreadyRun'=>"进程已启动",
+        'startOk'=>"启动成功",
+        'startFail'=>"启动失败",
+        'notRun'=>"进程未启动",
+        'logExist'=>"日志不存在",
+    ],
+    'file'=>[
+        'preview'=>"预览文件",
+        'browserDown'=>"请使用浏览器下载",
+        'exist'=>"文件不存在",
+        'uploadLimit'=>"文件大小不能超过{:size}MB",
+        'typeNotSupport'=>"文件格式不支持",
+        'uploadOk'=>"上传成功"
+    ],
+    'scan'=>[
+        'failure'=>'二维码已失效'
+    ],
     "" => "",
     "ok" => '成功',
     "OK" => "成功",