|
@@ -12,6 +12,7 @@
|
|
|
#import <RCCloudPhoneSDK/RCAudioPlayer.h>
|
|
|
#import "ShortcutManager.h"
|
|
|
#import <objc/runtime.h>
|
|
|
+#import "RCCommandHelp.h"
|
|
|
|
|
|
@interface PlayerViewController(AppDelegate)
|
|
|
|
|
@@ -95,6 +96,7 @@
|
|
|
|
|
|
|
|
|
[self setShowImgAndVoiceTypeFun:YES];
|
|
|
+ [self updateCopydata];
|
|
|
}
|
|
|
|
|
|
- (void)applicationWillTerminate:(UIApplication *)application {
|
|
@@ -125,4 +127,24 @@
|
|
|
return currentSSID;
|
|
|
}
|
|
|
|
|
|
+- (void)updateCopydata{
|
|
|
+ UIPasteboard* pasteboard = [UIPasteboard generalPasteboard];
|
|
|
+ NSString *str = [pasteboard string];
|
|
|
+
|
|
|
+ HLog(@"__________%s______%@____",__func__,str);
|
|
|
+
|
|
|
+ if ([str rangeOfString:@"CVLUSTERS_NOUSE_"].location != NSNotFound)
|
|
|
+ {
|
|
|
+ str = nil;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (str)
|
|
|
+ {
|
|
|
+ /*发送数据*/
|
|
|
+ NSString *dataStr = [RCCommandHelp commandCuttingWithContent:str];
|
|
|
+ [self.commandChannelManager rc_sendData:dataStr];
|
|
|
+ //pasteboard.string = @"";
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
@end
|