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 #pragma mark - Event response
- (void)onMicButtonClicked:(UIButton *)sender { - (void)onMicButtonClicked:(UIButton *)sender {
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"]; NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
#if DEBUG
isCanChat = 1;
#endif
if (isCanChat != 1) { if (isCanChat != 1) {
[self alertChat]; [self alertChat];
return; return;
@@ -235,6 +238,9 @@
- (void)onKeyboardButtonClicked:(UIButton *)sender { - (void)onKeyboardButtonClicked:(UIButton *)sender {
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"]; NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
#if DEBUG
isCanChat = 1;
#endif
if (isCanChat != 1) { if (isCanChat != 1) {
[self alertChat]; [self alertChat];
return; return;
@@ -252,6 +258,9 @@
- (void)onFaceEmojiButtonClicked:(UIButton *)sender { - (void)onFaceEmojiButtonClicked:(UIButton *)sender {
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"]; NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
#if DEBUG
isCanChat = 1;
#endif
if (isCanChat != 1) { if (isCanChat != 1) {
[self alertChat]; [self alertChat];
return; return;
@@ -271,6 +280,9 @@
- (void)onMoreButtonClicked:(UIButton *)sender { - (void)onMoreButtonClicked:(UIButton *)sender {
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"]; NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
#if DEBUG
isCanChat = 1;
#endif
if (isCanChat != 1) { if (isCanChat != 1) {
[self alertChat]; [self alertChat];
return; return;
@@ -387,6 +399,9 @@
#pragma mark-- UITextViewDelegate #pragma mark-- UITextViewDelegate
- (void)textViewDidBeginEditing:(UITextView *)textView { - (void)textViewDidBeginEditing:(UITextView *)textView {
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"]; NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
#if DEBUG
isCanChat = 1;
#endif
if (isCanChat != 1) { if (isCanChat != 1) {
[self.inputTextView resignFirstResponder]; [self.inputTextView resignFirstResponder];
[self alertChat]; [self alertChat];