|
@@ -124,7 +124,7 @@ public class TaContractServiceImpl extends ServiceImpl<TaContractMapper, TaContr
|
124
|
124
|
FddClientBase base = new FddClientBase(fadadaProperties.getAppId(),fadadaProperties.getAppSecret(),fadadaProperties.getVersion(),getFddServerHost(person.getMiniappId(),fadadaProperties.getServeHost()));
|
125
|
125
|
String result = base.invokeUploadDocs(taContract.getContractId().toString(), taContractBusiness.getContractTemplateName(), null, taContractBusiness.getContractTemplateAddress(), ".pdf");
|
126
|
126
|
JSONObject jsonObject = JSONObject.parseObject(result);
|
127
|
|
- if (!jsonObject.getInteger("code").equals("1000")){
|
|
127
|
+ if (!jsonObject.getString("code").equals("1000")){
|
128
|
128
|
throw new Exception(jsonObject.getString("msg"));
|
129
|
129
|
}
|
130
|
130
|
|
|
@@ -141,7 +141,7 @@ public class TaContractServiceImpl extends ServiceImpl<TaContractMapper, TaContr
|
141
|
141
|
req.setDoc_title(taContractBusiness.getContractTemplateName());
|
142
|
142
|
String autoSignResult = base.invokeExtSignAuto(req);
|
143
|
143
|
JSONObject autoSignResultJson = JSONObject.parseObject(autoSignResult);
|
144
|
|
- if (!autoSignResultJson.getInteger("code").equals("1000")){
|
|
144
|
+ if (!autoSignResultJson.getString("code").equals("1000")){
|
145
|
145
|
throw new Exception(jsonObject.getString("msg"));
|
146
|
146
|
}
|
147
|
147
|
|