Commit 04c6ecee authored by yanzg's avatar yanzg

下载视频

parent 10b355f2
......@@ -7,6 +7,7 @@ import com.yanzuoguang.mq.service.MqService;
import com.yanzuoguang.mq.vo.MessageVo;
import com.yanzuoguang.mq.vo.QueueVo;
import com.yanzuoguang.util.cache.MemoryCache;
import com.yanzuoguang.util.exception.CodeException;
import com.yanzuoguang.util.helper.DateHelper;
import com.yanzuoguang.util.helper.JsonHelper;
import com.yanzuoguang.util.helper.StringHelper;
......@@ -151,8 +152,11 @@ public class YzgFileProcedure implements InitializingBean {
* @param req
*/
public void fileCreate(YzgFileCreateReqVo req) {
if (StringHelper.isEmpty(req.getCallbackMQ(), req.getFileName())) {
return;
if (StringHelper.isEmpty(req.getFileName())) {
throw new CodeException("下载文件名不能为空");
}
if (StringHelper.isEmpty(req.getCallbackMQ())) {
throw new CodeException("回调callbackMQ不能为空,请检查后端程序");
}
req.init();
fileCreate(JsonHelper.serialize(req));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment