|
@@ -37,6 +37,7 @@ import java.util.Map;
|
|
|
import ma.glasnost.orika.MapperFacade;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -72,6 +73,14 @@ public class TicketBoxMgrController extends BaseApiController {
|
|
|
|
|
|
@Autowired
|
|
|
private MapperFacade mapperFacade;
|
|
|
+
|
|
|
+
|
|
|
+ @Value("${wx-channel.appId}")
|
|
|
+ private String channelAppId;
|
|
|
+
|
|
|
+
|
|
|
+ @Value("${mp.exportUrl}")
|
|
|
+ private String exportUrl;
|
|
|
|
|
|
/**
|
|
|
* 查询所有盲票组列表
|
|
@@ -125,7 +134,7 @@ public class TicketBoxMgrController extends BaseApiController {
|
|
|
&& StringUtils.isNotBlank(ticket.getCipherLuckyNum())) {
|
|
|
TicketExcel ticketExcel = new TicketExcel();
|
|
|
ticketExcel.setSerialNo(ticket.getSerialNo());
|
|
|
- ticketExcel.setUrl("http://wwww.baidu.com?no=" + ticket.getSerialNo());
|
|
|
+ ticketExcel.setUrl(exportUrl + ticket.getSerialNo());
|
|
|
ticketExcel.setDrawNum(ticket.getDrawNum());
|
|
|
ticketExcel.setCipherLuckyNum(ticket.getCipherLuckyNum());
|
|
|
excelList.add(ticketExcel);
|