|
@@ -136,7 +136,7 @@ public class ThOCRAction extends AbstractNCAction{
|
|
|
JSONArray infos = data.getJSONArray("infos");
|
|
|
for(int j = 0;j < infos.size();j++){
|
|
|
JSONObject info = infos.getJSONObject(j).getJSONObject("info");
|
|
|
- String code = info.getString("code");//发票代码
|
|
|
+// String code = info.getString("code");//发票代码
|
|
|
String ext = info.getString("ext");
|
|
|
JSONObject extobj = JSONObject.parseObject(ext);
|
|
|
String trate = extobj.getString("trate");//税率
|
|
@@ -147,6 +147,7 @@ public class ThOCRAction extends AbstractNCAction{
|
|
|
name = flist.getJSONObject(k).getString("name").replace("\"", "");//发票名称
|
|
|
}
|
|
|
String memo = info.getString("number");//发票号
|
|
|
+ String code = info.getString("number");//发票代码
|
|
|
JSONObject comm_info = info.getJSONObject("comm_info");
|
|
|
JSONObject pro = comm_info.getJSONObject("pro");
|
|
|
String date = pro.getString("date");//发票日期
|