示例#1
0
 public void sendAppLog(VZ_AppInfo info, int time)
 {
     try
     {
         String url = baseURL + "wxpay/wxmovieplay";
         String tm  = "" + VZMethods.ConvertDateTimeInt(DateTime.Now);
         Dictionary <String, String> dic = new Dictionary <string, string>();
         dic.Add("from", "vrzone");
         dic.Add("id", "" + systemInfo.computerId);
         dic.Add("sid", "iloveyouvrzone");
         dic.Add("tm", tm);
         dic.Add("uid", "1");
         dic.Add("cate", info.type);
         dic.Add("fname", info.appName);
         dic.Add("play_time", "" + time);
         String sign = "cate=" + info.type + "&fname=" + info.appName + "&from=vrzone&id=" + systemInfo.computerId + "&play_time=" + time + "&sid=iloveyouvrzone&tm=" + tm + "&uid=1&--iloveyouvrzone";
         dic.Add("sign", VZMethods.strToMD5(sign).ToUpper());
         HttpWebResponse response       = HttpWebResponseUtility.CreatePostHttpResponse(url, dic, 2000, null, Encoding.UTF8, null);
         Stream          responseStream = response.GetResponseStream();
         StreamReader    sr             = new StreamReader(responseStream, Encoding.GetEncoding(response.CharacterSet));
         String          msg            = sr.ReadToEnd();
         return;
     }
     catch
     {
     }
 }
示例#2
0
 public void getServerInfo()
 {
     try
     {
         String url = baseURL + "wxpay/pay";
         String tm  = "" + VZMethods.ConvertDateTimeInt(DateTime.Now);
         Dictionary <String, String> dic = new Dictionary <string, string>();
         dic.Add("from", "vrzone");
         dic.Add("id", "" + systemInfo.computerId);
         dic.Add("sid", "iloveyouvrzone");
         dic.Add("tm", tm);
         dic.Add("uid", "1");
         String sign = "from=vrzone&id=" + systemInfo.computerId + "&sid=iloveyouvrzone&tm=" + tm + "&uid=1&--iloveyouvrzone";
         dic.Add("sign", VZMethods.strToMD5(sign).ToUpper());
         url = url + "?from=vrzone&id=" + systemInfo.computerId + "&sid=iloveyouvrzone&tm=" + tm + "&uid=1&sign=" + VZMethods.strToMD5(sign).ToUpper();
         HttpWebResponse response       = HttpWebResponseUtility.CreateGetHttpResponse(url, 2000, null, null);
         Stream          responseStream = response.GetResponseStream();
         StreamReader    sr             = new StreamReader(responseStream, Encoding.GetEncoding(response.CharacterSet));
         String          msg            = sr.ReadToEnd();
         payInfo = JsonHelper.DeserializeJsonToObject <VZ_StateInfo>(msg);
         return;
     }
     catch
     {
         return;
     }
 }
示例#3
0
        public static String getQRCodeURL(int index)
        {
            String url = baseURL + "wxpay/qrcode?";
            String tm  = "" + VZMethods.ConvertDateTimeInt(DateTime.Now);

            String sign = "from=vrzone&id=" + VZ_AppHelper.GetInstance().systemInfo.computerId + "&sid=iloveyouvrzone&sonid=" + (index + 1) + "&tm=" + tm + "&uid=1&--iloveyouvrzone";

            sign = VZMethods.strToMD5(sign).ToUpper();
            url += "from=vrzone&id=" + VZ_AppHelper.GetInstance().systemInfo.computerId + "&sid=iloveyouvrzone&sonid=" + (index + 1) + "&tm=" + tm + "&uid=1&sign=" + sign;
            return(url);
        }