public object GetCheckContact(string contact, string certificate) { CheckShopManageLogin(); if (!CheckCertificate(certificate)) { return(ErrorResult("凭证无效")); } PluginInfo pluginInfo; var isMobile = Core.Helper.ValidateHelper.IsMobile(contact); if (isMobile) { pluginInfo = PluginsManagement.GetInstalledPluginInfos(Core.Plugins.PluginType.SMS).First(); } else { pluginInfo = PluginsManagement.GetInstalledPluginInfos(PluginType.Email).First(); } MemberApplication.UpdateMemberContacts(new MemberContacts() { Contact = contact, ServiceProvider = pluginInfo.PluginId, UserId = CurrentUser.Id, UserType = Himall.Model.MemberContactsInfo.UserTypes.ShopManager }); return(SuccessResult()); }