From d1b814d3636af7c7b0d4658372f0db2709103273 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Tue, 30 Jul 2024 11:25:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=90=A5=E9=94=80=E6=B4=BB=E5=8A=A8=E6=B5=B7=E6=8A=A5?= =?UTF-8?q?=E5=86=85=E5=95=86=E5=93=81=E4=BB=B7=E6=A0=BC=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8E=9F=E4=BB=B7=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0accessToken=E6=B5=B7=E6=8A=A5=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E8=BF=94=E5=9B=9E=E7=9A=84=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Services/Share/CoreCmsShareServices.cs | 6 ++++++ .../pages/share/shareNewPoster/shareNewPoster.vue | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) 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;