diff --git a/ios/Classes/Api/MOP_currentApplet.m b/ios/Classes/Api/MOP_currentApplet.m index d4f4f41..d15224b 100644 --- a/ios/Classes/Api/MOP_currentApplet.m +++ b/ios/Classes/Api/MOP_currentApplet.m @@ -25,10 +25,19 @@ dic[@"version"] = info.appVersion; dic[@"thumbnail"]=info.appThumbnail; dic[@"wechatLoginInfo"]=info.wechatLoginInfo; + if (info.appletVersionType == FATAppletVersionTypeRelease) { + dic[@"appletType"] = @"release"; + } else if (info.appletVersionType == FATAppletVersionTypeTrial) { + dic[@"appletType"] = @"trial"; + } else if (info.appletVersionType == FATAppletVersionTypeTemporary) { + dic[@"appletType"] = @"temporary"; + } else if (info.appletVersionType == FATAppletVersionTypeReview) { + dic[@"appletType"] = @"review"; + } else { + dic[@"appletType"] = @"development"; + } success(dic); - } - else - { + } else { success(@{}); } }