From 8bb7508d76686116a1a5cbe397a3f55d6dff5f66 Mon Sep 17 00:00:00 2001 From: wangzhaoyao Date: Mon, 10 Oct 2022 18:28:58 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=B1=BB=E5=9E=8B=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOP_currentApplet.m | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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(@{}); } }