|
|
@@ -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( )
|