bihuisong 7 ヶ月 前
コミット
41c562b240

+ 14 - 0
zhjq-business/src/main/java/com/zhjq/controller/ZhjqVoiceController.java

@@ -122,4 +122,18 @@ public class ZhjqVoiceController extends BaseController {
         }
         return null;
     }
+
+
+    /**
+     * app获取语音播报详细信息
+     */
+    @GetMapping(value = "/app/{id}")
+    public AjaxResult getAppInfo(@PathVariable("id") Long id) {
+        ZhjqVoice vo = zhjqVoiceService.selectZhjqVoiceById(id);
+        StringUtils.space2nbsp(vo.getContent());
+        if (StringUtils.isNotEmpty(vo.getVoiceUrl())) {
+            vo.setVoiceUrl(configService.selectConfigByKey("server_url") + vo.getVoiceUrl());
+        }
+        return success(vo);
+    }
 }

+ 1 - 1
zhjq-framework/src/main/java/com/zhjq/framework/config/SecurityConfig.java

@@ -111,7 +111,7 @@ public class SecurityConfig {
                     requests.antMatchers("/login", "/register", "/captchaImage", "/appLogin").permitAll()
                             // 静态资源,可匿名访问
                             .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
-                            .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/weather/**").permitAll()
+                            .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/weather/**","/app/voice/app/**").permitAll()
                             // 除上面外的所有请求全部需要鉴权认证
                             .anyRequest().authenticated();
                 })