|
|
@@ -74,7 +74,7 @@ public class AigcApiService {
|
|
|
try {
|
|
|
String post = httpPoolClient.post(url, getAigcPostParam(params));
|
|
|
JSONObject res = JSONObject.parseObject(post);
|
|
|
- if (Objects.isNull(res)) {
|
|
|
+ if (Objects.isNull(res) || res.getInteger("code") != 0) {
|
|
|
return null;
|
|
|
}
|
|
|
JSONObject data = res.getJSONObject("data");
|