jiangqs
2023-09-04 c97706c3cc213b7db3d381e8a0435ff0ef9a04d6
ruoyi-modules/ruoyi-system/src/test/java/com/ruoyi/system/systemTest.java
@@ -2,6 +2,7 @@
import com.ruoyi.system.service.staff.SysWxCpService;
import me.chanjar.weixin.common.error.WxErrorException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
@@ -24,7 +25,8 @@
    private SysWxCpService sysWxCpService;
    @Test
    public void main() {
        sysWxCpService.syncDepartment();
    public void main() throws WxErrorException {
        sysWxCpService.sendMessage();
        sysWxCpService.updateDept();
    }
}