【修复】修复营销活动海报内商品价格显示原价的问题。增加accessToken海报报错微信返回的内容。

This commit is contained in:
jianweie code
2024-07-30 11:25:07 +08:00
parent ac4bcb2b7a
commit d1b814d363
2 changed files with 10 additions and 4 deletions

View File

@@ -239,11 +239,13 @@ namespace CoreCms.Net.Services
if (response.ErrorCode == (int)WeChatReturnCode.ReturnCode.page不正确) if (response.ErrorCode == (int)WeChatReturnCode.ReturnCode.page不正确)
{ {
jm.msg = "后台小程序配置的APPID和APPSECRET对应的小程序未发布上线,或者page没有发布无法生成海报"; jm.msg = "后台小程序配置的APPID和APPSECRET对应的小程序未发布上线,或者page没有发布无法生成海报";
jm.data = response;
return jm; return jm;
} }
else if (response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.access_token时AppSecret错误或者access_token无效) else if (response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.access_token时AppSecret错误或者access_token无效)
{ {
jm.msg = "微信小程序access_token已过期无法为你生成海报"; jm.msg = "微信小程序access_token已过期无法为你生成海报";
jm.data = response;
return jm; return jm;
} }
else else
@@ -253,6 +255,7 @@ namespace CoreCms.Net.Services
{ {
jm.msg = response.ErrorCode + enumType.title; jm.msg = response.ErrorCode + enumType.title;
} }
jm.data = response;
return jm; return jm;
} }
} }
@@ -324,11 +327,13 @@ namespace CoreCms.Net.Services
if (!response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.page不正确) if (!response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.page不正确)
{ {
jm.msg = "后台小程序配置的APPID和APPSECRET对应的小程序未发布上线,或者page没有发布无法生成海报"; jm.msg = "后台小程序配置的APPID和APPSECRET对应的小程序未发布上线,或者page没有发布无法生成海报";
jm.data = response;
return jm; return jm;
} }
else if (!response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.access_token时AppSecret错误或者access_token无效) else if (!response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.access_token时AppSecret错误或者access_token无效)
{ {
jm.msg = "微信小程序access_token已过期无法为你生成海报"; jm.msg = "微信小程序access_token已过期无法为你生成海报";
jm.data = response;
return jm; return jm;
} }
else if (!response.IsSuccessful() && response.ErrorCode > 0) else if (!response.IsSuccessful() && response.ErrorCode > 0)
@@ -338,6 +343,7 @@ namespace CoreCms.Net.Services
{ {
jm.msg = response.ErrorCode + enumType.title; jm.msg = response.ErrorCode + enumType.title;
} }
jm.data = response;
return jm; return jm;
} }
else else

View File

@@ -223,8 +223,8 @@
_this.showModel.image = res.data.image; _this.showModel.image = res.data.image;
_this.showModel.brief = res.data.brief; _this.showModel.brief = res.data.brief;
_this.showModel.name = res.data.name; _this.showModel.name = res.data.name;
_this.showModel.price = res.data.price; _this.showModel.price = res.data.product.price;
_this.showModel.mktprice = res.data.mktprice; _this.showModel.mktprice = res.data.product.mktprice;
_this.showGroupPurchaseSeckillArguments = true; _this.showGroupPurchaseSeckillArguments = true;
_this.showModel.groupPurchaseSeckill.endTime = res.data.groupEndTime; _this.showModel.groupPurchaseSeckill.endTime = res.data.groupEndTime;
@@ -262,8 +262,8 @@
_this.showModel.image = res.data.image; _this.showModel.image = res.data.image;
_this.showModel.brief = res.data.brief; _this.showModel.brief = res.data.brief;
_this.showModel.name = res.data.name; _this.showModel.name = res.data.name;
_this.showModel.price = res.data.price; _this.showModel.price = res.data.product.price;
_this.showModel.mktprice = res.data.mktprice; _this.showModel.mktprice = res.data.product.mktprice;
_this.showGroupPurchaseSeckillArguments = true; _this.showGroupPurchaseSeckillArguments = true;
_this.showModel.groupPurchaseSeckill.endTime = res.data.groupEndTime; _this.showModel.groupPurchaseSeckill.endTime = res.data.groupEndTime;