diff --git a/CoreCms.Net.Services/Share/CoreCmsShareServices.cs b/CoreCms.Net.Services/Share/CoreCmsShareServices.cs index fda5947e..1928e47c 100644 --- a/CoreCms.Net.Services/Share/CoreCmsShareServices.cs +++ b/CoreCms.Net.Services/Share/CoreCmsShareServices.cs @@ -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 diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/share/shareNewPoster/shareNewPoster.vue b/CoreCms.Net.Uni-App/CoreShop/pages/share/shareNewPoster/shareNewPoster.vue index e4372067..297e0207 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/share/shareNewPoster/shareNewPoster.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/share/shareNewPoster/shareNewPoster.vue @@ -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;