This commit is contained in:
启星
2025-10-01 00:33:20 +08:00
parent adcc8f57f9
commit 6c40c966c5

View File

@@ -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];