|
@@ -1298,8 +1298,13 @@ public class WxLoginService implements IWxLoginService {
|
|
|
//解析json
|
|
//解析json
|
|
|
JSONObject jsonObject = (JSONObject) JSONObject.parse(resultString);
|
|
JSONObject jsonObject = (JSONObject) JSONObject.parse(resultString);
|
|
|
String openId = String.valueOf(jsonObject.get("openid"));
|
|
String openId = String.valueOf(jsonObject.get("openid"));
|
|
|
- User user = iUserService.queryByOpenId(openId);;
|
|
|
|
|
Map<String, String> map = new HashMap<>();
|
|
Map<String, String> map = new HashMap<>();
|
|
|
|
|
+ if (StringUtils.isBlank(openId)){
|
|
|
|
|
+ map.put("isUser","1");
|
|
|
|
|
+ map.put("openId","");
|
|
|
|
|
+ return map;
|
|
|
|
|
+ }
|
|
|
|
|
+ User user = iUserService.queryByOpenId(openId);;
|
|
|
if (user == null) {
|
|
if (user == null) {
|
|
|
map.put("isUser","1");
|
|
map.put("isUser","1");
|
|
|
map.put("openId",openId);
|
|
map.put("openId",openId);
|