public void PopWindow(PopWindow wd) { try { Console.WriteLine(wd.ToYDSdkJsonString()); var cipherText = m_crypto.Encrypt(AESCrypto.ToBytes(wd.ToYDSdkJsonString())); var param = new Dictionary <string, object>() { { "app_id", m_appId }, { "msg_encrypt", cipherText } }; var client = new HttpClient(); var rsp = client.Post(this.apiPopWindow(), param, HttpContentTypes.ApplicationJson); Helper.CheckHttpStatus(rsp); var body = rsp.StaticBody <Dictionary <string, object> >(overrideContentType: HttpContentTypes.ApplicationJson); Helper.CheckApiStatus(body); } catch (WebException e) { throw new HttpRequestException(0, e.Message, e); } catch (Exception e) { if (e is GeneralEntAppException) { throw e; } else { throw new UnexpectedException(e.Message, e); } } }