admin
2022-05-07 15bedcc619b1edb6eb987f9288db7670e5b38c46
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.yeshi.makemoney.app.controller;
 
import com.ks.push.exception.BPushTaskException;
import com.yeshi.makemoney.app.entity.SystemEnum;
import com.yeshi.makemoney.app.service.manager.PushManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
 
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;
import java.math.BigDecimal;
 
@Controller
@RequestMapping("test")
public class TestController {
    Logger logger = LoggerFactory.getLogger(TestController.class);
 
 
    @Resource
    private PushManager pushManager;
 
    @RequestMapping("push")
    public void push(Long uid, PrintWriter out) {
        try {
            pushManager.pushGoldCornSettle(SystemEnum.svmm, uid, Math.abs(1000), new BigDecimal("22"));
            out.print("success");
        } catch (BPushTaskException e) {
            e.printStackTrace(out);
        }
    }
 
 
}