|
@@ -1,11 +1,13 @@
|
|
|
package com.zhongzheng.controller.cmmon;
|
|
|
|
|
|
+import cn.hutool.core.lang.Validator;
|
|
|
import com.zhongzheng.common.core.controller.BaseController;
|
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
import com.zhongzheng.common.core.redis.RedisCache;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.framework.web.service.WxTokenService;
|
|
|
+import com.zhongzheng.modules.base.bo.ConfigQueryBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseMenuQueryBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseQueryBo;
|
|
|
import com.zhongzheng.modules.course.service.ICourseChapterSectionService;
|
|
@@ -94,9 +96,14 @@ public class CommonController extends BaseController {
|
|
|
|
|
|
@ApiOperation("小程序配置")
|
|
|
@GetMapping("/config")
|
|
|
- public AjaxResult<Map<String,Object>> config(CourseQueryBo bo) throws InterruptedException, ParseException {
|
|
|
+ public AjaxResult<Map<String,Object>> config(ConfigQueryBo bo) {
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
- map.put("hide",true);
|
|
|
+ map.put("hide",false);
|
|
|
+ if(Validator.isNotEmpty(bo.getVersion())){
|
|
|
+ if(bo.getVersion().equals("4.1")){
|
|
|
+ map.put("hide",true);
|
|
|
+ }
|
|
|
+ }
|
|
|
return AjaxResult.success(map);
|
|
|
}
|
|
|
|