Commit 4661b4c1 by 杨林龙

完成基本开发

1 parent 323ff54b
......@@ -72,10 +72,10 @@ public class CustomerMgrController {
@RequestMapping(value = "/login", method = RequestMethod.POST)
@ResponseBody
public R login(PlatformCustomer customer) {
int num = customerMgrService.login(customer);
if (num == 0) {
PlatformCustomer platformCustomer = customerMgrService.login(customer);
if (platformCustomer == null) {
return R.error("登陆失败");
}
return R.ok("登陆成功");
return R.ok("登陆成功").data(platformCustomer);
}
}
......@@ -21,7 +21,7 @@ public class IceOpenApiController {
@RequestMapping(value = "/getDataView", method = RequestMethod.GET)
@ResponseBody
public R getUserInfo(int userId) {
public R getUserInfo(int userId, int deviceType) {
Map<String, Integer> dataViewMap = iceOpenApiService.getDataView(userId);
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!