This commit is contained in:
启星
2025-10-30 00:45:15 +08:00
parent acc4cffad2
commit aa356202e2
96 changed files with 881 additions and 303 deletions

View File

@@ -199,6 +199,8 @@ typedef NS_OPTIONS(NSInteger, TUIChatInputBarMoreMenuItem) {
*/
@property (nonatomic, weak) id<TUIChatShortcutViewDataSource> shortcutViewDataSource;
@property (nonatomic, assign)BOOL isAppStore;
@end
NS_ASSUME_NONNULL_END

View File

@@ -399,9 +399,12 @@
#pragma mark-- UITextViewDelegate
- (void)textViewDidBeginEditing:(UITextView *)textView {
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
#if DEBUG
isCanChat = 1;
#endif
//#if DEBUG
// isCanChat = 1;
//#endif
if (TUIChatConfig.defaultConfig.isAppStore) {
isCanChat = 1;
}
if (isCanChat != 1) {
[self.inputTextView resignFirstResponder];
[self alertChat];