Commit 4661b4c1 by 杨林龙

完成基本开发

1 parent 323ff54b
...@@ -72,10 +72,10 @@ public class CustomerMgrController { ...@@ -72,10 +72,10 @@ public class CustomerMgrController {
@RequestMapping(value = "/login", method = RequestMethod.POST) @RequestMapping(value = "/login", method = RequestMethod.POST)
@ResponseBody @ResponseBody
public R login(PlatformCustomer customer) { public R login(PlatformCustomer customer) {
int num = customerMgrService.login(customer); PlatformCustomer platformCustomer = customerMgrService.login(customer);
if (num == 0) { if (platformCustomer == null) {
return R.error("登陆失败"); return R.error("登陆失败");
} }
return R.ok("登陆成功"); return R.ok("登陆成功").data(platformCustomer);
} }
} }
...@@ -21,7 +21,7 @@ public class IceOpenApiController { ...@@ -21,7 +21,7 @@ public class IceOpenApiController {
@RequestMapping(value = "/getDataView", method = RequestMethod.GET) @RequestMapping(value = "/getDataView", method = RequestMethod.GET)
@ResponseBody @ResponseBody
public R getUserInfo(int userId) { public R getUserInfo(int userId, int deviceType) {
Map<String, Integer> dataViewMap = iceOpenApiService.getDataView(userId); Map<String, Integer> dataViewMap = iceOpenApiService.getDataView(userId);
return R.ok().data(dataViewMap); return R.ok().data(dataViewMap);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!