SourceCode/jiouosdp/Controllers/Crowdfundings/CrowdfundingController.cs

(开头部分) 15KB

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

using jiouosdp.Models;
using LitJson;
using RFrameGenerate.BLL;
using RFrameGenerate.Common;
using RFrameGenerate.Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;

namespace jiouosdp.Controllers.Crowdfundings
{
    public class CrowdfundingController : BaseWeiXinController
    {
        //
        // GET: /Crowdfunding/
        //首页

        #region Page Actions

        public ActionResult Index()
        {
            #region 分享
            var share = new Share(Request.Url.ToString())
            {
                title = "一元夺宝",
                desc = "快来夺宝吧!",
            };

            if (string.IsNullOrEmpty(CookieManage.GetCookie(SessionKeys.ShareDistribution)) == true)
            {
                var mentity = DistributionManage.GetStoreInfo();
                share.imgUrl = mentity.Logo;
                share.shareOpenUrl = CurrentManage.CurrentDomainWx + "Crowdfunding/Index?inviter=" + OpenID;
            }
            else
            {
                var member = GetCurrentMember();
                share.imgUrl = member.HeadImgUrl;
                share.shareOpenUrl = CurrentManage.CurrentDomainWx + "Crowdfunding/Index?did=" + CookieManage.GetCookie(SessionKeys.ShareDistribution) + "&inviter=" + OpenID;
            }
            ViewBag.sharejs = share.CreateShareToHtml();

            #endregion
            return View();
        }

        public JsonResult GetLotteryName(Guid perid)
        {
            string name = CrowdWinningManage.GetLotteryName(perid);
            return Json(new { Result = "OK", Name = name });
        }

        public ActionResult Help()
        {
            return View();
后面还有 402 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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