@@ -16,8 +16,12 @@ public class GetCustomerIdResponse extends BaseModel { | |||
@JsonIgnore | |||
private String data; | |||
public String getCustomerId() throws IOException { | |||
return JsonTools.json2Object(data, this.getClass()).getCustomerId(); | |||
// return JSONObject.parseObject(data).getString("customerId"); | |||
public String getCustomerId() { | |||
try { | |||
return JsonTools.json2Object(data, this.getClass()).getCustomerId(); | |||
} catch (IOException e) { | |||
e.printStackTrace(); | |||
} | |||
return null; | |||
} | |||
} |