|
@@ -749,6 +749,26 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
|
|
|
NSString *url = [content ks_stringValueForKey:@"url"];
|
|
|
[self openOutLink:url];
|
|
|
}
|
|
|
+ else if ([parm ks_stringValueForKey:@"checkDeviceCamera"]) { // 检测相机权限
|
|
|
+ NSMutableDictionary *sendContent = [NSMutableDictionary dictionaryWithDictionary:[parm ks_dictionaryValueForKey:@"content"]];
|
|
|
+
|
|
|
+ [RecordCheckManager checkCameraPremissionAvaiableCallback:^(PREMISSIONTYPE type) {
|
|
|
+
|
|
|
+ if (type == PREMISSIONTYPE_YES) {
|
|
|
+ [sendContent setValue:@(YES) forKey:@"status"];
|
|
|
+ NSMutableDictionary *sendParm = [NSMutableDictionary dictionaryWithDictionary:parm];
|
|
|
+ [sendParm setValue:sendContent forKey:@"content"];
|
|
|
+ [self postMessage:sendParm];
|
|
|
+
|
|
|
+ }
|
|
|
+ else if (type == PREMISSIONTYPE_NO) {
|
|
|
+ [sendContent setValue:@(NO) forKey:@"status"];
|
|
|
+ NSMutableDictionary *sendParm = [NSMutableDictionary dictionaryWithDictionary:parm];
|
|
|
+ [sendParm setValue:sendContent forKey:@"content"];
|
|
|
+ [self postMessage:sendParm];
|
|
|
+ }
|
|
|
+ }];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- (void)openOutLink:(NSString *)url {
|