Pu Zhibing
2024-11-09 f85ea638d98b302c590e65f00e6912d91601613c
ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TDriverController.java
@@ -79,6 +79,9 @@
    @Value("${spring.mail.template-path}")
    private String templatePath;
    @Autowired
    private RedisUtil redisUtil;
@@ -588,7 +591,6 @@
                type = 6;
                tDriver.setAuthState(4);
            }
            new Thread(new Runnable() {
                @Override
                public void run() {
@@ -612,9 +614,9 @@
                        driver_audit1_user.text("Hello " + tDriver.getFirstName() + " " + tDriver.getLastName() + ",");
                        Element driver_audit1_content = document.getElementById("driver_audit1_content");
                        if(1 == authState){
                            driver_audit1_content.text("You application has been approved.");
                            driver_audit1_content.text("Your application has been approved.");
                        }else{
                            driver_audit1_content.text("I'm sorry, your application was rejected. Reason for rejection: Incomplete filling in personal information.");
                            driver_audit1_content.text("We are sorry to inform you that your application was rejected. Please contact our service for relevant details, call 0577777767 or send e-mail to support@i-go.group");
                        }
                        EmailUtil.send(tDriver.getEmail(), 1 == authState ? "Driver is verified and qualified" : "Driver is not verified and qualified",  document.html());
                    }catch (Exception e){
@@ -766,9 +768,7 @@
        tDriverService.updateById(driver);
        return SUCCESS_TIP;
    }
    @Autowired
    private RedisUtil redisUtil;
    /**
     * 操作司机状态
     */