|
|
@ -96,10 +96,14 @@ namespace BBWY.Server.Business |
|
|
|
if (shop == null) |
|
|
|
throw new BusinessException($"未找到店铺 {venderResponse.ShopName}"); |
|
|
|
|
|
|
|
if (appKeyType == Enums.AppKeyType.订单管理) |
|
|
|
{ |
|
|
|
//freeSqlMultiDBManager.MDSfsql.Update<Shops>(shop.Id)
|
|
|
|
} |
|
|
|
|
|
|
|
freeSqlMultiDBManager.MDSfsql.Update<Shops>(shop.Id) |
|
|
|
.SetIf(string.IsNullOrEmpty(shop.ShopId), s => s.ShopId, venderResponse.ShopId) |
|
|
|
.SetIf(string.IsNullOrEmpty(shop.ShopType), s => s.ShopType, venderResponse.ColType) |
|
|
|
.SetIf(string.IsNullOrEmpty(shop.VenderId), s => s.VenderId, venderResponse.VenderId) |
|
|
|
.SetIf(appKeyType == Enums.AppKeyType.订单管理, s => s.AppToken, jDShopToken.AccessToken) |
|
|
|
.SetIf(appKeyType == Enums.AppKeyType.商品管理, s => s.AppToken2, jDShopToken.AccessToken) |
|
|
|
.ExecuteAffrows(); |
|
|
|
|
|
|
|
return JsonConvert.SerializeObject(jDShopToken); |
|
|
|
} |
|
|
|