zhangnaisong
2024-01-02 c14ba09f8c5e08d976f0954e29ed60296348102d
ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarController.java
@@ -29,6 +29,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -75,6 +76,9 @@
    private ArdSyCarController ardSyCarController;
    @Value("${syCar.enabled}")
    private Boolean syCarEnabled;
    @PostConstruct
    public void init(){
        ardSyCarController = this;
@@ -84,7 +88,8 @@
        config.setConfigKey("syCarPT");
        List<SysConfig> sysConfigResult = sysConfigService.selectConfigList(config);
        String syURL = "";
        if(sysConfigResult.size() == 0){
        //if(sysConfigResult.size() == 0){
        if(!syCarEnabled){//三一车辆加入开关
            return;
        }else{
            syURL = sysConfigResult.get(0).getConfigValue();