Procházet zdrojové kódy

新增协议,隐私接口

wjj před 13 hodinami
rodič
revize
2ad19f7d55

+ 19 - 0
fs-user-app/src/main/java/com/fs/app/controller/store/H5ScrmController.java

@@ -1,6 +1,7 @@
 package com.fs.app.controller.store;
 
 import cn.hutool.json.JSONUtil;
+import com.fs.common.core.domain.R;
 import com.fs.hisStore.config.AgreementConfig;
 import com.fs.system.service.ISysConfigService;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -39,6 +40,24 @@ public class H5ScrmController
         AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
         return config.getUserAgreement();
     }
+
+    @GetMapping("/newUserAgreement")
+    @ResponseBody
+    public R newUserAgreement(){
+        String json=configService.selectConfigByKey("store.agreement");
+        AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
+        return R.ok().put("data", config.getUserRegister());
+    }
+
+    @GetMapping("/newPrivacyPolicy")
+    @ResponseBody
+    public R newPrivacyPolicy( )
+    {
+        String json=configService.selectConfigByKey("store.agreement");
+        AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
+        return R.ok().put("data", config.getPrivacyPolicy());
+    }
+
     @GetMapping("/privacyPolicyNew")
     @ResponseBody
     public String privacyPolicyNew( )