parent
e97ae4783a
commit
74068c0870
@ -0,0 +1,60 @@ |
|||||||
|
package com.cweb.controller.pay; |
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject; |
||||||
|
import com.cweb.config.SysConst; |
||||||
|
import com.hai.common.pay.WechatPayUtil; |
||||||
|
import com.hai.common.pay.util.IOUtil; |
||||||
|
import com.hai.common.pay.util.XmlUtil; |
||||||
|
import com.hai.common.pay.util.sdk.WXPayConstants; |
||||||
|
import com.hai.common.utils.HttpsUtils; |
||||||
|
import com.hai.common.utils.ResponseMsgUtil; |
||||||
|
import com.hai.common.utils.WxUtils; |
||||||
|
import com.hai.model.ResponseData; |
||||||
|
import com.hai.model.WxSharingReceiversVO; |
||||||
|
import com.hai.service.HighProfitSharingRecordService; |
||||||
|
import com.hai.service.TelApiService; |
||||||
|
import com.hai.service.pay.NotifyService; |
||||||
|
import com.hai.service.pay.PayRecordService; |
||||||
|
import com.wechat.pay.contrib.apache.httpclient.util.PemUtil; |
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import org.slf4j.Logger; |
||||||
|
import org.slf4j.LoggerFactory; |
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestMethod; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||||
|
|
||||||
|
import javax.annotation.Resource; |
||||||
|
import javax.servlet.http.HttpServletRequest; |
||||||
|
import javax.servlet.http.HttpServletResponse; |
||||||
|
import java.io.BufferedOutputStream; |
||||||
|
import java.io.FileInputStream; |
||||||
|
import java.io.FileNotFoundException; |
||||||
|
import java.io.UnsupportedEncodingException; |
||||||
|
import java.security.*; |
||||||
|
import java.util.Base64; |
||||||
|
import java.util.HashMap; |
||||||
|
import java.util.Map; |
||||||
|
import java.util.SortedMap; |
||||||
|
|
||||||
|
@Controller |
||||||
|
@RequestMapping(value = "/ty") |
||||||
|
@Api(value = "团油回调") |
||||||
|
public class TuanYouController { |
||||||
|
|
||||||
|
private static Logger log = LoggerFactory.getLogger(TuanYouController.class); |
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping(value = "/orderPaymentNotify", method = RequestMethod.POST) |
||||||
|
@ApiOperation(value = "订单支付回调") |
||||||
|
public void orderPaymentNotify(HttpServletRequest request, HttpServletResponse response) { |
||||||
|
try { |
||||||
|
|
||||||
|
|
||||||
|
} catch (Exception e) { |
||||||
|
log.error("WechatPayController --> wechatNotify() error!", e); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue