public BLLIM(string nimAppKey, string nimAppSecret) { if (!string.IsNullOrWhiteSpace(nimAppKey) && !string.IsNullOrWhiteSpace(nimAppSecret)) { imSdk = new NeteaseIMSDK.NeteaseIMSDK(nimAppKey, nimAppSecret); } else { throw new Exception("站点还未配置云信账号"); } }
public BLLIM() { var websiteInfo = GetWebsiteInfoModelFromDataBase(); if (!string.IsNullOrWhiteSpace(websiteInfo.NIMAppKey) && !string.IsNullOrWhiteSpace(websiteInfo.NIMAppSecret)) { imSdk = new NeteaseIMSDK.NeteaseIMSDK(websiteInfo.NIMAppKey, websiteInfo.NIMAppSecret); } else { throw new Exception("站点还未配置云信账号"); } }