Commit 0c2df16b authored by hezhen's avatar hezhen

Merge branch 'master_position' into dev

parents 7f89e3b3 72460fdc
......@@ -138,11 +138,12 @@ public class AppUserRest {
* @return
*/
@RequestMapping(value = "/user/checkBindWechat")
public @ResponseBody JSONObject checkBindWechat(@RequestParam(value="username",defaultValue="")String username) {
public @ResponseBody JSONObject checkBindWechat(@RequestParam(value="username",defaultValue="")String username,
@RequestParam(value="isQQ",defaultValue="0")Integer isQQ) {
if (StringUtils.isBlank(username)) {
return JsonResultUtil.createFailedResult(ResultCode.NULL_CODE, "参数为空");
}
return appPermissionService.checkBindWechat(username);
return appPermissionService.checkBindWechat(username,isQQ);
}
......
......@@ -617,12 +617,15 @@ public class AppPermissionService {
* @return
*/
public JSONObject checkBindWechat(String username) {
public JSONObject checkBindWechat(String username,Integer isQQ) {
JSONObject data = new JSONObject();
try {
AppUserLogin userLogin = appUserLoginBiz.checkeUserLogin(username);
if (userLogin != null) {
String openid = userLogin.getOpenid();
if (isQQ==null||isQQ==0){
openid=userLogin.getWxOpenid();
}
if (StringUtils.isNotBlank(openid)) {
data.put("type", 0); // 已存在
} else {
......
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