|
|
@@ -54,6 +54,7 @@ import me.zhyd.oauth.model.AuthResponse;
|
|
|
import me.zhyd.oauth.model.AuthUser;
|
|
|
import me.zhyd.oauth.request.AuthRequest;
|
|
|
import me.zhyd.oauth.utils.AuthStateUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
|
@@ -101,7 +102,8 @@ public class SocialClientServiceImpl implements SocialClientService {
|
|
|
@Value("${yudao.wxa-subscribe-message.miniprogram-state:formal}")
|
|
|
public String miniprogramState;
|
|
|
|
|
|
- @Resource
|
|
|
+ @SuppressWarnings("SpringJavaAutowiredFieldsWarningInspection")
|
|
|
+ @Autowired(required = false) // 由于 justauth.enable 配置项,可以关闭 AuthRequestFactory 的功能,所以这里只能不强制注入
|
|
|
private AuthRequestFactory authRequestFactory;
|
|
|
|
|
|
@Resource
|