Bladeren bron

Merge branch 'develop' of gitadmin/tuoheng_telecomumale into release

tags/v1.0.0^2
chengwang 1 jaar geleden
bovenliggende
commit
6f9a8af632
1 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. +5
    -5
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WxServiceImpl.java

+ 5
- 5
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WxServiceImpl.java Bestand weergeven

@@ -61,11 +61,11 @@ public class WxServiceImpl implements IWxService {
public JsonResult openid(String code) {
String userId = CurrentUserUtil.getUserId();
String openidResult = GetOpenIdUtil.getopenid(code, CommonConfig.appId, CommonConfig.appSecret);
int errcode = JSONObject.parseObject(openidResult).getInteger("errcode");
String errmsg = JSONObject.parseObject(openidResult).getString("errmsg");
if(0 != errcode){
return JsonResult.error(errcode,errmsg);
}
// int errcode = JSONObject.parseObject(openidResult).getInteger("errcode");
// String errmsg = JSONObject.parseObject(openidResult).getString("errmsg");
// if(0 != errcode){
// return JsonResult.error(errcode,errmsg);
// }
String openid = JSONObject.parseObject(openidResult).getString("openid");
if(StringUtils.isEmpty(openid)){
log.error("获取openid失败:",openidResult);

Laden…
Annuleren
Opslaan