|
@@ -28,6 +28,9 @@ public class HelpController extends AbstractController {
|
|
|
@Value("${zskk.shopmanagehost}")
|
|
|
private String shopmanagehost;
|
|
|
|
|
|
+ @Value("${zskk.myhost}")
|
|
|
+ private String shopHost;
|
|
|
+
|
|
|
@RequestMapping("/loginout")
|
|
|
@ResponseBody
|
|
|
public ControllerResult loginout(){
|
|
@@ -39,4 +42,14 @@ public class HelpController extends AbstractController {
|
|
|
throw new ZSKKException(ErrorConstant.SERVER_ERROR);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @RequestMapping("/shoploginout")
|
|
|
+ public String shoploginout(){
|
|
|
+ try{
|
|
|
+ String redirect = URLEncoder.encode(shopHost, "UTF-8");
|
|
|
+ return "redirect:" + this.getUccenter() + "login/loginout?redirect=" + redirect;
|
|
|
+ }catch (Exception e) {
|
|
|
+ throw new ZSKKException(ErrorConstant.SERVER_ERROR);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|