其他平台买手拍单发送功能 店铺筛选功能逻辑优化

This commit is contained in:
wule committed 2026-05-15 19:27:52 +08:00
1 parent 2dece676c1
commit aa45b35145
46 files changed
+4038 -2223

No files matched your search

+14
View File
@@ -15,6 +15,20 @@ namespace TemuKJD.BLL.PddApi
{
public class PddApiHelper
{
public static AuthInfo RefreshOrderApi(AuthInfo _authInfo, bool isForceRefresh = false)
{
if (isForceRefresh || (_authInfo.UpdateTime <= DateTime.Now.AddDays(-1) && _authInfo.ExpiresTime <= DateTime.Now))
{
string errStr = "";
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == _authInfo.ShopId);
if (shop == null)
shop = new ShopLoginInfo() { ShopId = _authInfo.ShopId };
var authInfo = PddApiHelper.GetE57ShopPddToken(shop, out errStr);
return authInfo;
}
return _authInfo;
}
public static void RefreshApi(ShopLoginInfo shop, bool isForceRefresh = false)
{
if (isForceRefresh || (shop.AuthUpdateTime <= DateTime.Now.AddDays(-1) && shop.AuthExpiresTime <= DateTime.Now))