| | |
| | | import com.yeshi.makemoney.app.vo.goldcorn.*; |
| | | import net.sf.json.JSONArray; |
| | | import net.sf.json.JSONObject; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @Controller |
| | | @RequestMapping("api/v1/goldcorn") |
| | | public class GoldCornController { |
| | | |
| | | Logger logger = LoggerFactory.getLogger(GoldCornController.class); |
| | | |
| | | @Resource |
| | | private GoldCornGetRecordService goldCornGetRecordService; |
| | | |
| | |
| | | e.printStackTrace(); |
| | | } catch (GoldCornMakeException e) { |
| | | e.printStackTrace(); |
| | | finish=false; |
| | | } |
| | | } else { |
| | | finish = false; |
| | | } |
| | | |
| | | JSONObject data = new JSONObject(); |
| | | data.put("price", price.getCornNum()); |
| | | data.put("finish", finish); |