|
|
@@ -7,6 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
@Controller
|
|
|
@@ -31,6 +32,21 @@ public class H5ScrmController
|
|
|
//return R.ok().put("userAgreement", config.getUserRegister());
|
|
|
return mv;
|
|
|
}
|
|
|
+ @GetMapping("/userAgreementNew")
|
|
|
+ @ResponseBody
|
|
|
+ public String userAgreementNew(){
|
|
|
+ String json=configService.selectConfigByKey("store.agreement");
|
|
|
+ AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
|
|
|
+ return config.getUserAgreement();
|
|
|
+ }
|
|
|
+ @GetMapping("/privacyPolicyNew")
|
|
|
+ @ResponseBody
|
|
|
+ public String privacyPolicyNew( )
|
|
|
+ {
|
|
|
+ String json=configService.selectConfigByKey("store.agreement");
|
|
|
+ AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
|
|
|
+ return config.getPrivacyPolicy();
|
|
|
+ }
|
|
|
@GetMapping("/privacyPolicy")
|
|
|
public ModelAndView privacyPolicy( )
|
|
|
{
|