|
|
@ -8,6 +8,7 @@ import com.hfkj.config.CommonSysConst; |
|
|
|
|
|
|
|
|
|
|
|
import com.hfkj.model.ResponseData; |
|
|
|
import com.hfkj.model.ResponseData; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.hfkj.service.pay.huift.TradeService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
@ -17,6 +18,7 @@ import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.*; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -25,7 +27,24 @@ import java.util.*; |
|
|
|
@Api(value="测试") |
|
|
|
@Api(value="测试") |
|
|
|
public class TestController { |
|
|
|
public class TestController { |
|
|
|
private static Logger log = LoggerFactory.getLogger(TestController.class); |
|
|
|
private static Logger log = LoggerFactory.getLogger(TestController.class); |
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private TradeService huiftTradeService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/thirdPayResult",method = RequestMethod.GET) |
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
|
|
|
|
@ApiOperation(value = "查询V家园订单交易状态") |
|
|
|
|
|
|
|
public ResponseData thirdPayResult(@RequestParam(value = "preOrderNo" , required = true) String preOrderNo, |
|
|
|
|
|
|
|
@RequestParam(value = "shopCode" , required = true) String shopCode, |
|
|
|
|
|
|
|
@RequestParam(value = "signSecret" , required = true) String signSecret) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success(huiftTradeService.thirdPayResult(preOrderNo,shopCode,signSecret)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("error!",e); |
|
|
|
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/haiOilLogin",method = RequestMethod.POST) |
|
|
|
@RequestMapping(value="/haiOilLogin",method = RequestMethod.POST) |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|