Merge remote-tracking branch 'origin/dev_mobile' into dev_mobile_ble
# Conflicts: # Assets/Scripts/App.cs # Assets/Scripts/Mobile/WeChatController.cs
This commit is contained in:
commit
c280408192
92 files changed
+27853
-6958
No files matched your search
@@ -86,4 +86,25 @@ void WechatLogin(const char* scope,const char* state)
|
||||
void OpenWXApp()
|
||||
{
|
||||
[WXApi openWXApp];
|
||||
}
|
||||
|
||||
bool checkAPPIsExist(NSString* URLScheme)
|
||||
{
|
||||
NSURL* url;
|
||||
if ([URLScheme containsString:@"://"])
|
||||
{
|
||||
url = [NSURL URLWithString:[NSString stringWithFormat:@"%@",URLScheme]];
|
||||
}
|
||||
else
|
||||
{
|
||||
url = [NSURL URLWithString:[NSString stringWithFormat:@"%@://",URLScheme]];
|
||||
}
|
||||
if([[UIApplication sharedApplication] canOpenURL:url])
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user