From 6c40c966c5483182f191e81febf2239ce55731af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=AF=E6=98=9F?= Date: Wed, 1 Oct 2025 00:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TUIKit/TUIChat/UI_Classic/Input/TUIInputBar.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/TUIKit/TUIChat/UI_Classic/Input/TUIInputBar.m b/TUIKit/TUIChat/UI_Classic/Input/TUIInputBar.m index 411372e..4704bb2 100644 --- a/TUIKit/TUIChat/UI_Classic/Input/TUIInputBar.m +++ b/TUIKit/TUIChat/UI_Classic/Input/TUIInputBar.m @@ -214,6 +214,9 @@ #pragma mark - Event response - (void)onMicButtonClicked:(UIButton *)sender { NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"]; +#if DEBUG + isCanChat = 1; +#endif if (isCanChat != 1) { [self alertChat]; return; @@ -235,6 +238,9 @@ - (void)onKeyboardButtonClicked:(UIButton *)sender { NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"]; +#if DEBUG + isCanChat = 1; +#endif if (isCanChat != 1) { [self alertChat]; return; @@ -252,6 +258,9 @@ - (void)onFaceEmojiButtonClicked:(UIButton *)sender { NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"]; +#if DEBUG + isCanChat = 1; +#endif if (isCanChat != 1) { [self alertChat]; return; @@ -271,6 +280,9 @@ - (void)onMoreButtonClicked:(UIButton *)sender { NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"]; +#if DEBUG + isCanChat = 1; +#endif if (isCanChat != 1) { [self alertChat]; return; @@ -387,6 +399,9 @@ #pragma mark-- UITextViewDelegate - (void)textViewDidBeginEditing:(UITextView *)textView { NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"]; +#if DEBUG + isCanChat = 1; +#endif if (isCanChat != 1) { [self.inputTextView resignFirstResponder]; [self alertChat];