java110
2021-06-03 a9e07a81db1cf653ef41c80f47914ff14480673a
优化代码
1个文件已修改
6 ■■■■ 已修改文件
service-front/src/main/java/com/java110/front/smo/payment/adapt/wechatPay/WechatPayNotifyAdapt.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-front/src/main/java/com/java110/front/smo/payment/adapt/wechatPay/WechatPayNotifyAdapt.java
@@ -29,6 +29,7 @@
import com.java110.utils.util.BeanConvertUtil;
import com.java110.utils.util.DateUtil;
import com.java110.utils.util.PayUtil;
import com.java110.utils.util.StringUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@@ -137,6 +138,8 @@
        } else {
            openId = map.get("openid").toString();
        }
        String useId = "-1";
        if(!StringUtil.isEmpty(openId)) {
        responseEntity = getUserInfoByOpenId(restTemplate, openId);
@@ -147,7 +150,8 @@
        JSONObject userResult = JSONObject.parseObject(responseEntity.getBody());
        JSONObject realUserInfo = userResult.getJSONArray("data").getJSONObject(0);
        String useId = realUserInfo.getString("userId");
            useId = realUserInfo.getString("userId");
        }
        //查询用户ID
        JSONObject paramIn = new JSONObject();