Esempio n. 1
0
        public Task <HttpResponseMessage> ExtDeviceLoginConfirmOK(ExtDeviceLoginConfirmOK extDeviceLoginConfirmOK)
        {
            ResponseBase <micromsg.ExtDeviceLoginConfirmOKResponse> response = new ResponseBase <micromsg.ExtDeviceLoginConfirmOKResponse>();
            var result = _wechat.ExtDeviceLoginConfirmOK(extDeviceLoginConfirmOK.WxId, extDeviceLoginConfirmOK.LoginUrl);

            response.Data = result;
            return(response.ToHttpResponseAsync());
        }
Esempio n. 2
0
 public bool ConfirmLogin(ref string json, ExtDeviceLoginConfirmOK postData)
 {
     try
     {
         string requsetjson = JsonConvert.SerializeObject(postData);
         json = Tool.HttpHelper.HttpPost(AppConfig.BaseUrl + AppConfig.ExtDeviceLoginConfirmOK, requsetjson);
         Msg  = json;
         return(true);
     }
     catch (Exception e)
     {
         Msg = "404,网络异常请检查ip或端口";
         return(false);
     }
 }
Esempio n. 3
0
        private void Btn_confim_Click(object sender, EventArgs e)
        {
            Facade.LoginFacde       loginFacde = new Facade.LoginFacde();
            ExtDeviceLoginConfirmOK extDeviceLoginConfirmOK = new ExtDeviceLoginConfirmOK
            {
                LoginUrl = lb_ConfirmUrl.Text,
                WxId     = string.Empty
            };
            string json = string.Empty;

            if (!loginFacde.ConfirmLogin(ref json, extDeviceLoginConfirmOK))
            {
                Log(loginFacde.Msg);
                return;
            }
            Log(json);
        }