mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:33:27 +08:00
【修复】修复营销活动海报内商品价格显示原价的问题。增加accessToken海报报错微信返回的内容。
This commit is contained in:
@@ -239,11 +239,13 @@ namespace CoreCms.Net.Services
|
||||
if (response.ErrorCode == (int)WeChatReturnCode.ReturnCode.page不正确)
|
||||
{
|
||||
jm.msg = "后台小程序配置的APPID和APPSECRET对应的小程序未发布上线,或者page没有发布,无法生成海报";
|
||||
jm.data = response;
|
||||
return jm;
|
||||
}
|
||||
else if (response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.获取access_token时AppSecret错误或者access_token无效)
|
||||
{
|
||||
jm.msg = "微信小程序access_token已过期,无法为你生成海报";
|
||||
jm.data = response;
|
||||
return jm;
|
||||
}
|
||||
else
|
||||
@@ -253,6 +255,7 @@ namespace CoreCms.Net.Services
|
||||
{
|
||||
jm.msg = response.ErrorCode + enumType.title;
|
||||
}
|
||||
jm.data = response;
|
||||
return jm;
|
||||
}
|
||||
}
|
||||
@@ -324,11 +327,13 @@ namespace CoreCms.Net.Services
|
||||
if (!response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.page不正确)
|
||||
{
|
||||
jm.msg = "后台小程序配置的APPID和APPSECRET对应的小程序未发布上线,或者page没有发布,无法生成海报";
|
||||
jm.data = response;
|
||||
return jm;
|
||||
}
|
||||
else if (!response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.获取access_token时AppSecret错误或者access_token无效)
|
||||
{
|
||||
jm.msg = "微信小程序access_token已过期,无法为你生成海报";
|
||||
jm.data = response;
|
||||
return jm;
|
||||
}
|
||||
else if (!response.IsSuccessful() && response.ErrorCode > 0)
|
||||
@@ -338,6 +343,7 @@ namespace CoreCms.Net.Services
|
||||
{
|
||||
jm.msg = response.ErrorCode + enumType.title;
|
||||
}
|
||||
jm.data = response;
|
||||
return jm;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -223,8 +223,8 @@
|
||||
_this.showModel.image = res.data.image;
|
||||
_this.showModel.brief = res.data.brief;
|
||||
_this.showModel.name = res.data.name;
|
||||
_this.showModel.price = res.data.price;
|
||||
_this.showModel.mktprice = res.data.mktprice;
|
||||
_this.showModel.price = res.data.product.price;
|
||||
_this.showModel.mktprice = res.data.product.mktprice;
|
||||
|
||||
_this.showGroupPurchaseSeckillArguments = true;
|
||||
_this.showModel.groupPurchaseSeckill.endTime = res.data.groupEndTime;
|
||||
@@ -262,8 +262,8 @@
|
||||
_this.showModel.image = res.data.image;
|
||||
_this.showModel.brief = res.data.brief;
|
||||
_this.showModel.name = res.data.name;
|
||||
_this.showModel.price = res.data.price;
|
||||
_this.showModel.mktprice = res.data.mktprice;
|
||||
_this.showModel.price = res.data.product.price;
|
||||
_this.showModel.mktprice = res.data.product.mktprice;
|
||||
|
||||
_this.showGroupPurchaseSeckillArguments = true;
|
||||
_this.showModel.groupPurchaseSeckill.endTime = res.data.groupEndTime;
|
||||
|
||||
Reference in New Issue
Block a user