From ebcfe9233197f88adfb4b41f8d921906184d3ff3 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Sun, 1 May 2022 17:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E8=AE=BE=E7=BD=AEbug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Client/ViewModels/Setting/ShopSettingViewModel.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BBWY.Client/ViewModels/Setting/ShopSettingViewModel.cs b/BBWY.Client/ViewModels/Setting/ShopSettingViewModel.cs index 995b03dc..39efc4d2 100644 --- a/BBWY.Client/ViewModels/Setting/ShopSettingViewModel.cs +++ b/BBWY.Client/ViewModels/Setting/ShopSettingViewModel.cs @@ -75,6 +75,12 @@ namespace BBWY.Client.ViewModels MessageBox.Show("采购信息不能为空", "保存店铺设置"); return; } + + PurchaseAccount.AppKey = PurchaseAccount.AppKey.Trim(); + PurchaseAccount.AppSecret = PurchaseAccount.AppSecret.Trim(); + PurchaseAccount.AppToken = PurchaseAccount.AppToken.Trim(); + PurchaseAccount.AccountName = PurchaseAccount.AccountName.Trim(); + var p = PlatformCommissionRatio / 100; IsLoading = true; Task.Factory.StartNew(() => shopService.SaveShopSetting(globalContext.User.Shop.ShopId, ManagePwd, p, PurchaseAccount)).ContinueWith(r => @@ -92,7 +98,7 @@ namespace BBWY.Client.ViewModels globalContext.User.Shop.PurchaseAccountList.Clear(); PurchaseAccount.Id = response.Data; globalContext.User.Shop.PurchaseAccountList.Add(PurchaseAccount); - globalContext.User.Shop.PlatformCommissionRatio = this.PlatformCommissionRatio; + globalContext.User.Shop.PlatformCommissionRatio = p; globalContext.User.Shop.ManagePwd = this.ManagePwd; }); }