TASK:模块化;
This commit is contained in:
@@ -382,7 +382,11 @@ public class GenerateConsumer {
|
|||||||
log.info("task_id : {} start ", generateResult.get("task_id"));
|
log.info("task_id : {} start ", generateResult.get("task_id"));
|
||||||
if (generateResult.get("status").equals("SUCCESS")) {
|
if (generateResult.get("status").equals("SUCCESS")) {
|
||||||
String progress = generateResult.getString("progress");
|
String progress = generateResult.getString("progress");
|
||||||
String url = generateResult.getJSONArray("result").getString(0);
|
JSONArray result = generateResult.getJSONArray("result");
|
||||||
|
String url = null;
|
||||||
|
if (!StringUtils.isEmpty(result)) {
|
||||||
|
url = result.getString(0);
|
||||||
|
}
|
||||||
String taskId = generateResult.getString("task_id");
|
String taskId = generateResult.getString("task_id");
|
||||||
userLikeGroupService.relightBatch(taskId, url, progress);
|
userLikeGroupService.relightBatch(taskId, url, progress);
|
||||||
} else {
|
} else {
|
||||||
@@ -506,9 +510,9 @@ public class GenerateConsumer {
|
|||||||
processToProductImageBatchResult(msg, channel);
|
processToProductImageBatchResult(msg, channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @RabbitListener(queues = "#{rabbitMQProperties.queues.relightBatch}")
|
@RabbitListener(queues = "#{rabbitMQProperties.queues.relightBatch}")
|
||||||
// @RabbitHandler
|
@RabbitHandler
|
||||||
// public void getRelightBatchResult(Message msg, Channel channel) {
|
public void getRelightBatchResult(Message msg, Channel channel) {
|
||||||
// processRelightBatchResult(msg, channel);
|
processRelightBatchResult(msg, channel);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user