public object GetSubmitModel(string cartItemIds, string productSku, WXSmallProgFromPageType fromPage, long shipAddressId = 0, long countDownId = 0, long buyAmount = 0) { CheckUserLogin(); if (fromPage == WXSmallProgFromPageType.SignBuy) { if (!string.IsNullOrWhiteSpace(productSku)) { return(GetSubmitModelById(productSku, (int)buyAmount)); } } if (fromPage == WXSmallProgFromPageType.Cart) { return(GetSubmitByCartModel(cartItemIds)); } return(Json(new { Status = "NO" })); }
public object GetSubmitModel(string cartItemIds, string productSku, WXSmallProgFromPageType fromPage, long buyAmount = 0, long shippingAddressId = 0, string couponIds = "", bool isStore = false, sbyte productType = 0, long shopBranchId = 0) { CheckUserLogin(); var coupons = CouponApplication.ConvertUsedCoupon(couponIds); if (fromPage == WXSmallProgFromPageType.SignBuy) { if (!string.IsNullOrWhiteSpace(productSku)) { return(GetSubmitModelById(productSku, (int)buyAmount, shippingAddressId, coupons, isStore, productType, shopBranchId)); } } if (fromPage == WXSmallProgFromPageType.Cart) { return(GetSubmitByCartModel(cartItemIds, shippingAddressId, coupons, isStore)); } return(Json(ErrorResult <dynamic>(string.Empty))); }