|
|
@@ -20,6 +20,7 @@ import me.zhengjie.appapi.entity.OrderRoomIdEntity;
|
|
|
import me.zhengjie.appapi.entity.PushDataEntity;
|
|
|
import me.zhengjie.appapi.service.OrderRoomIdService;
|
|
|
import me.zhengjie.appapi.service.TencentPushService;
|
|
|
+import me.zhengjie.appapi.util.StatusEnum.StepStatusEnum;
|
|
|
import me.zhengjie.base.util.DownloadUtils;
|
|
|
|
|
|
@Controller
|
|
|
@@ -59,7 +60,8 @@ public class TencentPushController {
|
|
|
// 这里通过订单查询相关信息
|
|
|
if (orderRoomId != null && orderRoomId.size() > 0) {
|
|
|
OrderRoomIdEntity orderRoomIdEntity = orderRoomId.get(0);
|
|
|
- String filePath = orderRoomIdEntity.getBusinessNo() + "/" + orderRoomIdEntity.getOrderId();
|
|
|
+ String orderType = StepStatusEnum.getType(orderRoomIdEntity.getOrderId());
|
|
|
+ String filePath = orderRoomIdEntity.getBusinessNo() + "/" + orderType;
|
|
|
String fileName = filePath + "/PC" + fileId + ".mp4";
|
|
|
DownloadUtils.downloadFile(json.get("video_url"), fileName);
|
|
|
OrderRoomIdEntity update = new OrderRoomIdEntity();
|
|
|
@@ -108,7 +110,8 @@ public class TencentPushController {
|
|
|
String roomId = param.get("roomId");
|
|
|
OrderRoomIdEntity orderRoomId = new OrderRoomIdEntity();
|
|
|
orderRoomId.setAppFileId(fileId);
|
|
|
- String filePath = orderRoomId.getBusinessNo() + "/" + orderRoomId.getOrderId();
|
|
|
+ String orderType = StepStatusEnum.getType(orderRoomId.getOrderId());
|
|
|
+ String filePath = orderRoomId.getBusinessNo() + "/" + orderType;
|
|
|
String fileName = filePath + "/APP" + fileId + ".mp4";
|
|
|
DownloadUtils.downloadFile(videoUrl.get("Url").toString(), fileName);
|
|
|
orderRoomId.setAppVideoUrl(fileName);
|
|
|
@@ -150,8 +153,9 @@ public class TencentPushController {
|
|
|
|
|
|
if (orderRoomId != null && orderRoomId.size() > 0) {
|
|
|
OrderRoomIdEntity orderRoomIdEntity = orderRoomId.get(0);
|
|
|
- String filePath = orderRoomIdEntity.getBusinessNo() + "/" + orderRoomIdEntity.getOrderId();
|
|
|
- String fileName = filePath + "/APP" + fileId + ".mp4";
|
|
|
+ String orderType = StepStatusEnum.getType(orderRoomIdEntity.getOrderId());
|
|
|
+ String filePath = orderRoomIdEntity.getBusinessNo() + "/" + orderType;
|
|
|
+ String fileName = filePath + "/APP" + fileId + ".mp4";
|
|
|
DownloadUtils.downloadFile(path, fileName);
|
|
|
OrderRoomIdEntity update = new OrderRoomIdEntity();
|
|
|
update.setPcFileId(fileId);
|