xuhy
2025-10-27 8490ad019fd89a1fa4ef746c4e90ae849d305b84
bug修改
3个文件已修改
11 ■■■■■ 已修改文件
ruoyi-applet/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-applet/src/main/resources/application-test.yml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-applet/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java
@@ -166,7 +166,7 @@
    public R<Map<String, Object>> openIdByCode(@RequestBody OfficeUserEncrypteData data) {
        log.info("<<<<<<<<换取openid开始<<<<<<<<:{}", data.getCode());
        WxAppletTools appletTools = new WxAppletTools(wxRestTemplate, wxConfig, redisService);
        Code2SessionRespBody body = appletTools.getOpenIdByJscode2session(new Code2SessionResqBody().build(data.getCode()));
        Code2SessionRespBody body = appletTools.getOpenIdByCode2session(new Code2SessionResqBody().build(data.getCode()));
        String openid = body.getOpenid();
        String phone = data.getPhone();
        if(StringUtils.isEmpty(phone)){
ruoyi-applet/src/main/resources/application-test.yml
@@ -197,8 +197,10 @@
    prefix: https://xzgt.test.591taxi.cn:${server.port}${server.servlet.context-path}
wx:
  conf:
    appId: wxa17e8d1331e50934
    secretId: 79c234527fd3b6553679d52be5e29b19
    appId: wxbf902715e30bdb38
    secretId: 4a9d4c800cbc778a553bab7c423e85ad
#    appId: wxa17e8d1331e50934
#    secretId: 79c234527fd3b6553679d52be5e29b19
    appLiveResultTemplateId: 1wheNdyQ88Cz9Z7L1EXxR2L0u4X4LaeXoZVtZwHCagk
    officeAppLiveResultTemplateId: 7w1JVe3S4ClFnff7g8us7x-hqFuV3f2SKjKclP_X2FI
payment:
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
@@ -123,9 +123,8 @@
                        "/t-sys-banner/pageList","/t-sys-banner/list","/t-sys-product-introduction/pageList",
                        "/t-sys-product-introduction/list","/t-sys-product-introduction/getDetailById","/t-sys-config/getDetailById",
                        "/t-sys-educational-info/list","/t-sys-educational-info/getDetailById","/t-sys-educational-info/pageList",
                        "/t-sys-educational-info/list","/t-sys-educational-info/getDetailById","/t-sys-educational-info/pageList",
                        "/t-sys-live/list","/t-sys-live/getDetailById","/t-sys-live/pageList",
                        "/open/**","/cos/get/**","/openIdByJsCode","/t-sys-order/**"
                        "/open/**","/cos/get/**","/openIdByJsCode","/t-sys-order/**","/openIdByCode"
                ).permitAll()
                // 静态资源,可匿名访问
                .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()