| @@ -0,0 +1,70 @@ | |||||
| package com.iformall.controller.callback; | |||||
| import com.alibaba.fastjson.JSON; | |||||
| import com.alibaba.fastjson.JSONObject; | |||||
| import com.iformall.controller.base.BaseController; | |||||
| import com.iformall.domain.po.*; | |||||
| import com.iformall.exception.MallinkException; | |||||
| import com.iformall.service.*; | |||||
| import com.iformall.service.pay.alipay.AliPayUtil; | |||||
| import com.iformall.service.pay.alipay.api.enums.EnumMemberCardConfig; | |||||
| import com.iformall.service.pay.alipay.api.result.UserAuthData; | |||||
| import org.apache.commons.lang3.StringUtils; | |||||
| import org.slf4j.Logger; | |||||
| import org.slf4j.LoggerFactory; | |||||
| import org.springframework.beans.factory.annotation.Autowired; | |||||
| import org.springframework.web.bind.annotation.PostMapping; | |||||
| import org.springframework.web.bind.annotation.RequestAttribute; | |||||
| import org.springframework.web.bind.annotation.RequestBody; | |||||
| import org.springframework.web.bind.annotation.RequestMapping; | |||||
| import org.springframework.web.bind.annotation.RequestParam; | |||||
| import org.springframework.web.bind.annotation.ResponseBody; | |||||
| import org.springframework.web.bind.annotation.RestController; | |||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| import java.io.IOException; | |||||
| import java.io.PrintWriter; | |||||
| import java.math.BigDecimal; | |||||
| import java.text.SimpleDateFormat; | |||||
| import java.util.Date; | |||||
| import java.util.Locale; | |||||
| import java.util.Map; | |||||
| /** | |||||
| * 金茂数据推送 | |||||
| * @author alascor | |||||
| * | |||||
| */ | |||||
| @RestController | |||||
| @RequestMapping("/jinmao/notify") | |||||
| public class JinMaoController extends BaseController { | |||||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||||
| private final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |||||
| /** | |||||
| * 金茂东风湖运动公园用户数据推送。 | |||||
| * @param response | |||||
| * @param request | |||||
| * @throws IOException | |||||
| */ | |||||
| @RequestMapping(value = "/dfh/user") | |||||
| @ResponseBody | |||||
| public void dfhUser(@RequestBody Map param) throws IOException { | |||||
| logger.info("dfh user:"+param); | |||||
| } | |||||
| /** | |||||
| * 金茂东风湖运动公园订单数据推送。 | |||||
| * @throws Exception 可能产生的任何异常 | |||||
| */ | |||||
| @RequestMapping(value = "/dfh/order") | |||||
| public void dfhOrder(@RequestBody Map param) throws Exception { | |||||
| logger.info("dfh order:"+param); | |||||
| } | |||||
| } | |||||