private void SaveOrder(HttpContext context) { int value = base.GetIntParam(context, "Value", false).Value; if (value >= 0) { int value2 = base.GetIntParam(context, "ProductId", false).Value; AppletChoiceProductInfo info = new AppletChoiceProductInfo { ProductId = value2, StoreId = 0, DisplaySequence = value }; if (WeChartAppletHelper.UpdateChoiceProductSequence(info)) { base.ReturnSuccessResult(context, "保存排序成功!", 0, true); return; } throw new HidistroAshxException("修改排序失败!未知错误!"); } throw new HidistroAshxException("错误的参数"); }
public static bool UpdateChoiceProductSequence(AppletChoiceProductInfo info) { return(new AppletChoiceProductDao().Update(info, null)); }