|
@@ -0,0 +1,40 @@
|
|
|
+package com.iamberry.rst.controllers.wx.home;
|
|
|
+
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @company 深圳爱贝源科技有限公司
|
|
|
+ * @website www.iamberry.com
|
|
|
+ * @author 献
|
|
|
+ * @tel 18271840547
|
|
|
+ * @date 2016年11月30日
|
|
|
+ * @explain 商城首页
|
|
|
+ */
|
|
|
+@Controller
|
|
|
+@RequestMapping("/wechat")
|
|
|
+public class HomeHandler {
|
|
|
+
|
|
|
+// @Autowired
|
|
|
+// private MemberService memberService;
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 微信商城首页URL
|
|
|
+// * @return
|
|
|
+// * @throws Exception
|
|
|
+// */
|
|
|
+// @RequestMapping(value = "/index", method = RequestMethod.GET)
|
|
|
+// public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
|
+//
|
|
|
+// //如果是分享 则绑定关系
|
|
|
+// Member member = WechatUtils.getUserBySession(request);
|
|
|
+//
|
|
|
+// String shareOpenid = request.getParameter("shareOpenid");
|
|
|
+// if(StringUtils.isNotEmpty(shareOpenid)){
|
|
|
+// memberService.buildChildUser(shareOpenid, member,1,1);
|
|
|
+// }
|
|
|
+// request.getRequestDispatcher(NameUtils.getConfig("WECHAT_SHOP_INDEX")).forward(request, response);
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
+}
|