Commit fa5edd05 authored by Quxl's avatar Quxl

x

parent 9d0bdc96
......@@ -296,6 +296,9 @@ public class UserController {
@RequestMapping(value = "/queryUserInfoByOpenId",method=RequestMethod.GET)
public String queryUserInfoByOpenId(String openId, String langID, HttpServletRequest request, HttpServletResponse response) {
Map<String, Object> customerMap = userService.queryCustomerByOpenId(openId);
if(customerMap == null) {
return Rjx.jsonErr().setMessage(I18NUtils.getMessage(langID, "Msg_OpenID_notExist")).toJson();
}
List<Map<String, Object>> shopList = userService.queryShopList((String)customerMap.get("sCustNO"));
customerMap.put("sShopNO", shopList.get(0).get("sShopNO"));
return Rjx.jsonOk().set("customer", customerMap).set("shopList", shopList).setMessage(I18NUtils.getMessage(langID, "Msg_Login_success")).toJson();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment