From de18c3eb06f830b2a38fb656bebac39078ce9423 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Mon, 3 Apr 2023 23:58:59 +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=E4=BA=8C=E7=BB=B4=E7=A0=81=E7=94=9F=E6=88=90=E4=B8=8E?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E4=BA=A4=E4=BA=92=E5=88=A4=E6=96=AD=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=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 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CoreCms.Net.Services/Share/CoreCmsShareServices.cs b/CoreCms.Net.Services/Share/CoreCmsShareServices.cs index 6c4b1f1..627eac1 100644 --- a/CoreCms.Net.Services/Share/CoreCmsShareServices.cs +++ b/CoreCms.Net.Services/Share/CoreCmsShareServices.cs @@ -391,17 +391,17 @@ namespace CoreCms.Net.Services request.LineColor = new WxaGetWxaCodeUnlimitRequest.Types.Color() { Red = 221, Blue = 51, Green = 238 }; var response = await client.ExecuteWxaGetWxaCodeUnlimitAsync(request); - if (response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.page不正确) + if (!response.IsSuccessful() && response.ErrorCode == (int)WeChatReturnCode.ReturnCode.page不正确) { jm.msg = "后台小程序配置的APPID和APPSECRET对应的小程序未发布上线,或者page没有发布,无法生成海报"; 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已过期,无法为你生成海报"; return jm; } - else if (response.IsSuccessful() && response.ErrorCode > 0) + else if (!response.IsSuccessful() && response.ErrorCode > 0) { var enumType = EnumHelper.GetEnumberEntity(response.ErrorCode); if (enumType != null)