Beispiel #1
0
        public async Task <string> SyncCheck(SyncCheckDto syncCheck)
        {
            var paramsDic = new Dictionary <string, string>();

            paramsDic.Add("r", TimeUtil.GetCurrentTimeStamp().ToString());
            paramsDic.Add("skey", syncCheck.Skey);
            paramsDic.Add("sid", syncCheck.Wxsid);
            paramsDic.Add("uin", syncCheck.Wxuin);
            paramsDic.Add("deviceid", syncCheck.DeviceId);
            paramsDic.Add("synckey", syncCheck.SyncKey);
            paramsDic.Add("_", TimeUtil.GetCurrentTimeStamp().ToString());
            var headers = new Dictionary <string, string>();

            headers.Add("Cookie", $"wxuin={syncCheck.Wxuin};webwx_data_ticket={syncCheck.DataTicket};");

            var response = await HttpUtil.GetAsync(syncCheck.SyncUrl + "/cgi-bin/mmwebwx-bin/synccheck",
                                                   paramDic : paramsDic, headers : headers);

            return(response);
        }
Beispiel #2
0
 public async Task <string> SyncCheck(SyncCheckDto syncCheck)
 {
     return(await weloginService.SyncCheck(syncCheck));
 }