RCT_EXPORT_METHOD(shareLinkAttachment:(NSString *)title :(NSString *)summary :(NSString *)url) {
WWKSendMessageReq *req = [[WWKSendMessageReq alloc] init];
WWKMessageLinkAttachment *attachment = [[WWKMessageLinkAttachment alloc] init];
attachment.title = title;
if (summary) {
attachment.summary = summary;
}
attachment.url = url;
attachment.icon = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"icon" ofType:@"jpg"]];
req.attachment = attachment;
[WWKApi sendReq:req];
}
#pragma mark - wx callback
-(void) onReq:(WWKBaseReq *)req {
NSLog(@"onReq");
}
- (void)onResp:(WWKBaseResp *)resp {
if ([resp isKindOfClass:[WWKSSOResp class]]) {
WWKSSOResp *r = (WWKSSOResp *)resp;
NSMutableDictionary *body = [NSMutableDictionary new];
body[@"errCode"] = @(r.errCode);
body[@"errStr"] = r.errStr;
body[@"state"] = r.state;
body[@"code"] = r.code;
body[@"type"] = @"SSOAuth.Resp";
NSLog(@"body = %@", [body description]);
[self sendEventWithName:WeChatWorkEventName body:body];
} else
if ([resp isKindOfClass:[WWKSendMessageResp class]]) {
WWKSendMessageResp *r = (WWKSendMessageResp *)resp;
NSMutableDictionary *body = [NSMutableDictionary new];
body[@"errCode"] = @(r.errCode);
body[@"errStr"] = r.errStr;
body[@"type"] = @"Share.Resp";
NSLog(@"body = %@", [body description]);
[self sendEventWithName:WeChatWorkEventName body:body];
}
}
你好,可以提供下企业corpid 应用agentid schema 用户手机号或者userid 分享的时间点 这些看下
请问下有下文了吗? 我也是没有回调