CmsWeb/images/Default.aspx.cs

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cms.Common;
using System.Text;
using System.Threading;
public partial class _Default : System.Web.UI.Page
{
    System.Timers.Timer Timers_Timer = new System.Timers.Timer();
    public static int t = 0;
    static double DEF_PI = 3.14159265359; // PI
    static double DEF_2PI= 6.28318530712; // 2*PI
    static double DEF_PI180= 0.01745329252; // PI/180.0
    static double DEF_R =6370693.5; // radius of earth
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Timers_Timer.Interval = 1000;
            Timers_Timer.Enabled = true;
            Timers_Timer.Elapsed += new System.Timers.ElapsedEventHandler(bind);
          
        }
        double mLat1 = 23.134521; // point1纬度
        double mLon1 = 113.358803; // point1经度
        double mLat2 = 23.135186;// point2纬度
        double mLon2 = 113.358677;// point2经度
        double distance = GetShortDistance(mLon1, mLat1, mLon2, mLat2);
        Response.Write(distance);
        double lat = 28.197500, lng = 113.010150;
        double lat2 = 28.196740, lng2 = 113.010330;
        //double distance = GetShortDistance(lng, lat, lng2, lat2);
        //  getwxmap(out lat, out lng);
        // GetDistance(lat,lng,lat2,lng2);
        Response.Write(distance);
        wxuser.UserSale wu = new wxuser.UserSale();
        wxuser.userinfo xw = new wxuser.userinfo();
        wu = wxuser.getUserRegister("oLrWUtwciIdM2RXG5JHdjiFd-en4", "测试账号5", "M", "长沙", "2000-01-01", "2015-01-15", "15211119482","");
        Response.Write(wu.content + "-" + wu.result);


        xw = wxuser.getUserUpdate("oLrWUtwciIdM2RXG5JHdjiFd-en4", "75152111194821", "测试", "M", "长沙", "2010-01-05", "2015-01-10", "13511102022","");

        Response.Write(xw.content + "-" + xw.result + "||");

        xw = wxuser.getuserinfo("oLrWUtwciIdM2RXG5JHdjiFd-en4");
        Response.Write(xw.content + "-" + xw.result + "-" + xw.openid + "-" + xw.sex + "-" + xw.shopname + "-" + xw.telephone + "-" + xw.useraddress + "-" + xw.userallscore + "-" + xw.usercard + "-" + xw.userlevel + "-" + xw.username + "-" + xw.userscore + "-" + xw.allbuy + "-" + xw.birthday + "-" + xw.buytimes);

        xw = wxuser.getUserSign("oLrWUtwciIdM2RXG5JHdjiFd-en4", "75152111194821");
        Response.Write(xw.content + "-" + xw.result + "||");
        List<wxuser.UserSale> list = new List<wxuser.UserSale>();
        list = wxuser.getUserSale("oLrWUtwciIdM2RXG5JHdjiFd-en4", "75152111194821");
        for (int i = 0; i < list.Count; i++)
        {
            wxuser.UserSale ux = new wxuser.UserSale();
            ux = list[i];
            Response.Write(ux.content + "-" + ux.result);
后面还有 172 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。