public List <CommentEntity> SendCommentPoint(List <CommentEntity> commentList, out List <string> msg) { msg = new List <string>(); if (commentList == null || commentList.Count == 0) { return(new List <CommentEntity>()); } List <CustomerPointsAddRequest> body = new List <CustomerPointsAddRequest>(); foreach (var item in commentList) { //新蛋网商品(vendortype=0)评论经验积分从MKT-Topic账户发放。 //商家商品(vendortype=1)评论相关发放积分从Seller –topic中发放。 CustomerPointsAddRequest aPR = new CustomerPointsAddRequest { CustomerSysNo = item.CustomerSysNo, Point = item.CustomerPoint, PointType = item.VendorType, SOSysNo = item.SOSysNo, NewEggAccount = item.VendorType == 0 ? NeweggAccount : SellerAccount, Memo = item.SysNo.ToString(), Source = "ECommerceMgmt", PointExpiringDate = DateTime.Now.AddYears(1) }; body.Add(aPR); string msgCode = SendCommentPointsDA.Adjust(aPR).ToString(); if (msgCode == "10001") { msg.Add("\r\n 客户:" + item.CustomerSysNo + ";评论编号:" + item.SysNo + ";获得积分:" + item.CustomerPoint + "-----出现异常,异常原因:发积分账户不存在或者积分不足!"); } } List <CommentEntity> successList = new List <CommentEntity>(); if (body == null || body.Count == 0) { return(new List <CommentEntity>()); } body.ForEach(item => { successList.Add(new CommentEntity() { //SysNo = int.Parse(item.Message.Memo), SysNo = Convert.ToInt32(item.SysNo), CustomerPoint = Convert.ToInt32(item.Point), CustomerSysNo = Convert.ToInt32(item.CustomerSysNo) }); }); return(successList); }