微信公众平台管理系统 微信公众号 微信开发 微信商城
dtcms框架,包含微网站、微商城、客户管理、用户管理、菜单管理等
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-02-26 15:06 Data
文件 13500416 2015-02-27 13:26 Datamxweixin.mdf
文件 1048576 2015-02-27 13:26 Datamxweixin_log.ldf
文件 13580892 2018-02-26 11:37 Datascript.sql
目录 0 2015-02-26 12:22 dll
文件 311296 2014-05-04 13:43 dllBeyondbit.framework.WebControl.dll
文件 49664 2014-05-04 13:43 dllLitJSON.dll
文件 429056 2014-05-04 13:43 dllNewtonsoft.Json.dll
文件 83968 2014-05-04 13:43 dllSenparc.Weixin.MP.dll
文件 155 2014-08-11 20:28 mssccprj.scc
目录 0 2015-02-26 12:23 MxWeiXinPF.API
目录 0 2015-02-26 12:23 MxWeiXinPF.APIin
目录 0 2015-02-26 12:23 MxWeiXinPF.APIinDebug
文件 49664 2014-05-04 13:43 MxWeiXinPF.APIinDebugLitJSON.dll
文件 55808 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.API.dll
文件 394752 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.API.pdb
文件 198144 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.BLL.dll
文件 1865216 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.BLL.pdb
文件 71168 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.Common.dll
文件 237056 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.Common.pdb
文件 992256 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.DAL.dll
文件 2369024 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.DAL.pdb
文件 18432 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.DBUtility.dll
文件 58880 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.DBUtility.pdb
文件 240128 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.Model.dll
文件 2244096 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.Model.pdb
文件 33280 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.WeiXinComm.dll
文件 128512 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.WeiXinComm.pdb
文件 83968 2014-05-04 13:43 MxWeiXinPF.APIinDebugSenparc.Weixin.MP.dll
目录 0 2015-02-26 12:23 MxWeiXinPF.APIinRelease
文件 49664 2014-05-04 13:43 MxWeiXinPF.APIinReleaseLitJSON.dll
............此处省略6952个文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MxWeiXinPF.Common;
using System.Text;
namespace MxWeiXinPF.Web.shop
{
///
/// shopmgr 的摘要说明
///
public class shopmgr : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = “text/json“;
BLL.wx_shop_cart cartBll = new BLL.wx_shop_cart();
string _action = MyCommFun.QueryString(“myact“);
string openid = MyCommFun.RequestOpenid(); //得到微信用户的openid
Dictionary jsonDict = new Dictionary();
if (_action == “addCart“)
{
#region 添加购物车
try
{
int wid = MyCommFun.RequestInt(“wid“);
int productId = MyCommFun.RequestInt(“productid“);
int skuId = MyCommFun.RequestInt(“mid“);
string skuInfo = MyCommFun.QueryString(“attr“);
int productNum = MyCommFun.RequestInt(“bc“);
decimal totalPrice = (decimal)MyCommFun.RequestFloat(“totprice“ 0);
Model.wx_shop_cart cart = new Model.wx_shop_cart();
IList cartList = cartBll.GetModelList(“productId=“ + productId + “ and openid=‘“ + openid + “‘ and skuId=“+skuId);
bool isAdd = true;
if (cartList != null && cartList.Count > 0)
{
isAdd = false;
cart = cartList[0];
}
if (isAdd)
{
cart.createDate = DateTime.Now;
cart.openid = openid;
cart.productId = productId;
cart.productNum = productNum;
cart.skuId = skuId;
cart.skuInfo = skuInfo;
cart.totPrice = totalPrice * productNum;
cart.wid = wid;
int ret = cartBll.Add(cart);
if (ret > 0)
{
jsonDict.Add(“errCode“ “false“);
}
else
{
jsonDict.Add(“errCode“ “true“);
}
}
else
{
cart.openid = openid;
cart.productNum += productNum;
cart.skuId = skuId;
cart.skuInfo = skuInfo;
cart.totPrice += totalPrice * productNum;
cart.wid = wid;
bool ret = cartBll.Update(cart);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-02-26 15:06 Data
文件 13500416 2015-02-27 13:26 Datamxweixin.mdf
文件 1048576 2015-02-27 13:26 Datamxweixin_log.ldf
文件 13580892 2018-02-26 11:37 Datasc
目录 0 2015-02-26 12:22 dll
文件 311296 2014-05-04 13:43 dllBeyondbit.fr
文件 49664 2014-05-04 13:43 dllLitJSON.dll
文件 429056 2014-05-04 13:43 dllNewtonsoft.Json.dll
文件 83968 2014-05-04 13:43 dllSenparc.Weixin.MP.dll
文件 155 2014-08-11 20:28 mssccprj.scc
目录 0 2015-02-26 12:23 MxWeiXinPF.API
目录 0 2015-02-26 12:23 MxWeiXinPF.APIin
目录 0 2015-02-26 12:23 MxWeiXinPF.APIinDebug
文件 49664 2014-05-04 13:43 MxWeiXinPF.APIinDebugLitJSON.dll
文件 55808 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.API.dll
文件 394752 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.API.pdb
文件 198144 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.BLL.dll
文件 1865216 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.BLL.pdb
文件 71168 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.Common.dll
文件 237056 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.Common.pdb
文件 992256 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.DAL.dll
文件 2369024 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.DAL.pdb
文件 18432 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.DBUtility.dll
文件 58880 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.DBUtility.pdb
文件 240128 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.Model.dll
文件 2244096 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.Model.pdb
文件 33280 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.WeiXinComm.dll
文件 128512 2018-02-26 11:45 MxWeiXinPF.APIinDebugMxWeiXinPF.WeiXinComm.pdb
文件 83968 2014-05-04 13:43 MxWeiXinPF.APIinDebugSenparc.Weixin.MP.dll
目录 0 2015-02-26 12:23 MxWeiXinPF.APIinRelease
文件 49664 2014-05-04 13:43 MxWeiXinPF.APIinReleaseLitJSON.dll
............此处省略6952个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)