From 2bc991b89e5239162b99d566b3bed6ac7d59c095 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Wed, 11 May 2022 12:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=90=8C=E6=AD=A5=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=BA=97=E9=93=BA=E6=89=A3=E7=82=B90.05?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Server.Business/MDSBusiness.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/BBWY.Server.Business/MDSBusiness.cs b/BBWY.Server.Business/MDSBusiness.cs index 2efb67e0..58cecf5f 100644 --- a/BBWY.Server.Business/MDSBusiness.cs +++ b/BBWY.Server.Business/MDSBusiness.cs @@ -37,7 +37,7 @@ namespace BBWY.Server.Business throw new Exception($"SyncOrder 获取店铺信息失败 shopId:{shopId} ErrorMsg:{shopResponseJToken.Value("Msg")}"); var shopJToken = shopResponseJToken["Data"].FirstOrDefault(); - return new ShopResponse() + var shopResponse = new ShopResponse() { AppKey = shopJToken.Value("AppKey"), AppSecret = shopJToken.Value("AppSecret"), @@ -46,9 +46,11 @@ namespace BBWY.Server.Business VenderType = shopJToken.Value("ShopType"), ShopId = shopId, Name = shopJToken.Value("ShopName"), - ManagePwd = shopJToken.Value("ManagePwd"), - PlatformCommissionRatio = shopJToken.Value("PlatformCommissionRatio") + ManagePwd = shopJToken.Value("ManagePwd") }; + try { shopResponse.PlatformCommissionRatio = shopJToken.Value("PlatformCommissionRatio"); } + catch { } + return shopResponse; } } }