From e4faee134a726dfaf2c798e07955ddddb2bbd278 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Mon, 22 Jan 2024 11:39:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5=E7=99=BE=E5=BA=A6=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E9=83=A8=E5=88=86=E6=95=B0=E6=8D=AE=EF=BC=8C=E6=8C=89?= =?UTF-8?q?=E5=A4=A9=E5=AD=98=E5=82=A8,refresh=5Faccess=5Ftoken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/baidu/tongji_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/baidu/tongji_service.rb b/app/services/baidu/tongji_service.rb index 8a611cd0f..a2a4f28fc 100644 --- a/app/services/baidu/tongji_service.rb +++ b/app/services/baidu/tongji_service.rb @@ -147,7 +147,7 @@ module Baidu def access_token access_token = Rails.cache.read("baidu_tongji_auth/access_token") - if access_token.blank? + if access_token.blank? && refresh_token.present? refresh_access_token access_token = Rails.cache.read("baidu_tongji_auth/access_token") end