|
|
@@ -2,6 +2,7 @@ package com.uas.platform.b2c.common.account.v2.controller;
|
|
|
import com.uas.platform.b2c.common.account.model.User;
|
|
|
import com.uas.platform.b2c.common.account.v2.service.UserService;
|
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
|
+import com.uas.platform.b2c.fa.payment.utils.StringUtils;
|
|
|
import com.uas.sso.entity.UserView;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
@@ -37,8 +38,14 @@ public class UserController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/bindUser", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public void bindUser(Long userUU, Long spaceUU, Integer type) {
|
|
|
- userService.bindOrUnbind(userUU, spaceUU, type);
|
|
|
+ public void bindUser(Long userUU, Long spaceUU, String type) {
|
|
|
+ Integer integerType = null;//1为绑定,0为解绑
|
|
|
+ if (!StringUtils.isEmpty(type) && type.equals("bind")) {
|
|
|
+ integerType = 1;
|
|
|
+ } else {
|
|
|
+ integerType = 0;
|
|
|
+ }
|
|
|
+ userService.bindOrUnbind(userUU, spaceUU, integerType);
|
|
|
}
|
|
|
|
|
|
}
|