| | |
| | |
|
| | | import java.io.PrintWriter;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | |
|
| | | import com.google.gson.Gson;
|
| | | import com.yeshi.fanli.entity.ad.DouYinClickEvent;
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.ad.DouYinClickEventService;
|
| | |
|
| | | @Controller
|
| | | @RequestMapping("ad/callback/douyin")
|
| | | public class DouYinCallBackController {
|
| | | @Resource
|
| | | private DouYinClickEventService douYinClickEventService;
|
| | |
|
| | | /**
|
| | | * 抖音下载回调
|
| | |
| | | */
|
| | | @RequestMapping("monitor")
|
| | | public void download(DouYinClickEvent event, PrintWriter out) {
|
| | | LogHelper.test(new Gson().toJson(event));
|
| | | douYinClickEventService.save(event);
|
| | | out.print("success");
|
| | | }
|
| | |
|