Skip to content

Commit 8e3cb16

Browse files
guangyaoguangyao
authored andcommitted
Fix
1 parent a711ef4 commit 8e3cb16

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

NIM.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ export default class NIM{
156156
*/
157157
static playLocacl(name,type){
158158
if(Platform.OS === 'ios'){
159-
return RNNeteaseIm.playLocacl(name,type);
159+
return RNNeteaseIm.playLocal(name,type);
160160
}
161-
return RNNeteaseIm.playLocacl("assets://"+name,type);
161+
return RNNeteaseIm.playLocal("assets://"+name,type);
162162
}
163163
/**
164164
* 停止播放录音

ios/RNNeteaseIm/RNNeteaseIm/RNNeteaseIm.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ - (dispatch_queue_t)methodQueue
398398
[[ConversationViewController initWithConversationViewController]play:filepath];
399399
}
400400
//播放本地资源录音
401-
RCT_EXPORT_METHOD(playLocacl:(nonnull NSString *)name type:(nonnull NSString *)type){
401+
RCT_EXPORT_METHOD(playLocal:(nonnull NSString *)name type:(nonnull NSString *)type){
402402
NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:type];
403403
[[ConversationViewController initWithConversationViewController]play:path];
404404
}

0 commit comments

Comments
 (0)