!199 【修复】修复售后库存处理异常,未进行商品序列判断,导致迭加到其他序列累加,导致负库存的问题。【修复】修复极端情况下,设置商品标题长度超过127位,导致发起支付,推送到微信获取订单数据失败的问题。#I4Z74W

Merge pull request !199 from 大灰灰/dahuihui/develop
pull/200/MERGE
大灰灰 3 years ago committed by Gitee
commit 644a87b7ac
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -636,11 +636,11 @@ namespace CoreCms.Net.Services
if (tt["id"].ToString() == item.id.ToString())
{
item.reshipNums += tt["nums"].ObjectToInt(0);
}
if (type == (int)GlobalEnumVars.BillAftersalesIsReceive.Reship)
{
item.reshipedNums += tt["nums"].ObjectToInt(0);
//判断 商品id相等才能判断是否已发货才能赋值给 reshipedNums 已发货的退货商品
if (type == (int)GlobalEnumVars.BillAftersalesIsReceive.Reship)
{
item.reshipedNums += tt["nums"].ObjectToInt(0);
}
}
}
}

@ -2028,6 +2028,7 @@ namespace CoreCms.Net.Services
if (!bl)
{
jm.msg = "确认收货失败";
return jm;
}
//修改发货单,如果有为确认收货的发货单,那么给他们回传上去确认收货时间

@ -105,7 +105,7 @@ namespace CoreCms.Net.Services
var request = new WeChatPayUnifiedOrderRequest
{
Body = entity.payTitle,
Body = entity.payTitle.Length > 127 ? entity.payTitle[..125] : entity.payTitle,
OutTradeNo = entity.paymentId,
TotalFee = Convert.ToInt32(entity.money * 100),
SpBillCreateIp = entity.ip,

@ -23,10 +23,7 @@
<u-empty :src="$globalConstVars.apiFilesUrl+'/static/images/empty/address.png'" icon-size="300" text="暂无地址信息" mode="list"></u-empty>
</view>
<view class="coreshop-bottomBox">
<!-- #ifdef MP-WEIXIN -->
<button class="coreshop-btn coreshop-btn-square coreshop-btn-b" @click="wechatAddress"></button>
<!-- #endif -->
<button class="coreshop-btn coreshop-btn-square coreshop-btn-w" @click="toAdd()"></button>
<button class="coreshop-btn coreshop-btn-b coreshop-btn-square" @click="toAdd()"></button>
</view>
</view>
@ -91,54 +88,6 @@
// this.$u.route("/pages/placeOrder/index/index")
}
},
// #ifdef MP-WEIXIN
wechatAddress: function () {
let _that = this;
wx.chooseAddress({
success: res => {
if (res.errMsg == "chooseAddress:ok") {
//
//
let data = {
provinceName: res.provinceName,
cityName: res.cityName,
countyName: res.countyName,
postalCode: res.postalCode
};
let areaId = 0;
this.$u.api.getAreaId(data).then(res1 => {
if (res1.status) {
//
let userShipId = 0;
let userShipData = {
areaId: res1.data,
name: res.userName,
address: res.detailInfo,
mobile: res.telNumber,
isDefault: 2
}
this.$u.api.saveUserShipWx(userShipData).then(res2 => {
if (res2.status) {
this.$refs.uToast.show({
title: '存储微信地址成功', type: 'success', callback: function () {
_that.userShipList();
}
});
} else {
this.$refs.uToast.show({ title: '存储微信地址失败', type: 'error' });
}
});
} else {
this.$refs.uToast.show({ title: '获取微信地址失败', type: 'error' });
}
});
} else {
this.$refs.uToast.show({ title: '获取微信地址失败', type: 'error' });
}
}
});
},
// #endif
}
}
</script>

@ -267,7 +267,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
var sLog = new CoreCmsStockLog
{
stockId = entity.id,
productId = item.id,
productId = item.productId,
goodsId = item.goodsId,
nums = item.nums,
sn = item.sn,

Loading…
Cancel
Save