|  | @@ -14,6 +14,7 @@ import com.yonge.cooleshow.common.exception.BizException;
 | 
	
		
			
				|  |  |  import com.yonge.toolset.thirdparty.exception.ThirdpartyException;
 | 
	
		
			
				|  |  |  import com.yonge.toolset.utils.collection.MapUtil;
 | 
	
		
			
				|  |  |  import com.yonge.toolset.utils.http.HttpUtil;
 | 
	
		
			
				|  |  | +import com.yonge.toolset.utils.string.StringUtil;
 | 
	
		
			
				|  |  |  import org.slf4j.Logger;
 | 
	
		
			
				|  |  |  import org.slf4j.LoggerFactory;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Component;
 | 
	
	
		
			
				|  | @@ -152,11 +153,10 @@ public class PaymentSdk {
 | 
	
		
			
				|  |  |              JSONObject jsonObject = JSONObject.parseObject(res);
 | 
	
		
			
				|  |  |              log.info("微信[获取用户openId] Res:{}", jsonObject.toJSONString());
 | 
	
		
			
				|  |  |              String errcode = jsonObject.getString("errcode");
 | 
	
		
			
				|  |  | -            if("0".equals(errcode)){
 | 
	
		
			
				|  |  | +            if(StringUtil.isEmpty(errcode) || "0".equals(errcode)){
 | 
	
		
			
				|  |  |                  Map<String, String> resMap = new HashMap<>();
 | 
	
		
			
				|  |  |                  resMap.put("openid", jsonObject.getString("openid"));
 | 
	
		
			
				|  |  |                  resMap.put("session_key", jsonObject.getString("session_key"));
 | 
	
		
			
				|  |  | -                resMap.put("unionid", jsonObject.getString("unionid"));
 | 
	
		
			
				|  |  |                  return HttpResponseResult.succeed(resMap);
 | 
	
		
			
				|  |  |              }else{
 | 
	
		
			
				|  |  |                  return HttpResponseResult.failed(jsonObject.getString("errmsg"));
 |