|
@@ -244,9 +244,13 @@ public class WxCorpInfoServiceImpl extends ServiceImpl<WxCorpInfoMapper, WxCorpI
|
|
System.out.println(resp);
|
|
System.out.println(resp);
|
|
JSONObject json = JSONObject.parseObject(resp);
|
|
JSONObject json = JSONObject.parseObject(resp);
|
|
if(json.getIntValue("errcode")==0){
|
|
if(json.getIntValue("errcode")==0){
|
|
- JSONObject result = (JSONObject) json.get("result");
|
|
|
|
- JSONObject contact_id_translate = (JSONObject) result.get("contact_id_translate");
|
|
|
|
- resultUrl = contact_id_translate.getString("url");
|
|
|
|
|
|
+ if (json.getIntValue("status")==3){
|
|
|
|
+ JSONObject result = (JSONObject) json.get("result");
|
|
|
|
+ JSONObject contact_id_translate = (JSONObject) result.get("contact_id_translate");
|
|
|
|
+ resultUrl = contact_id_translate.getString("url");
|
|
|
|
+ }else {
|
|
|
|
+ throw new Exception(json.toJSONString());
|
|
|
|
+ }
|
|
}else {
|
|
}else {
|
|
throw new Exception(json.toJSONString());
|
|
throw new Exception(json.toJSONString());
|
|
}
|
|
}
|