|
|
@@ -4,11 +4,13 @@ import com.uas.platform.b2c.core.support.log.UsageBufferedLogger;
|
|
|
import com.uas.platform.b2c.fa.payment.facade.PingAnFacade;
|
|
|
import com.uas.platform.core.logging.BufferedLoggerManager;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 平安接口的控制器
|
|
|
@@ -34,7 +36,7 @@ public class PingAnController {
|
|
|
* @param request 请求
|
|
|
* @param isPersonal 是否是个人
|
|
|
*/
|
|
|
- @RequestMapping(value = "/pay/bindCard", method = RequestMethod.GET)
|
|
|
+ @RequestMapping(value = "/unionPay/pay/bindCard", method = RequestMethod.GET)
|
|
|
public String bindCard(HttpServletRequest request, Boolean isPersonal) {
|
|
|
String str = pingAnFacade.bindCard(request, isPersonal);
|
|
|
logger.log("平安支付控制器", "支付绑卡", "支付时的绑卡");
|
|
|
@@ -48,10 +50,26 @@ public class PingAnController {
|
|
|
* @param isPersonal 是否是个人
|
|
|
* @return String
|
|
|
*/
|
|
|
- @RequestMapping(value = "/bindCard/query", method = RequestMethod.GET)
|
|
|
+ @RequestMapping(value = "/unionPay/bindCard/query", method = RequestMethod.GET)
|
|
|
public String queryBindCard(Boolean isPersonal) {
|
|
|
String resultStr = pingAnFacade.queryBindCard(isPersonal);
|
|
|
logger.log("平安支付控制器", "跨行支付绑卡", "查询绑卡信息");
|
|
|
return resultStr;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param map 传入的数据
|
|
|
+ * currency 币别 RMB 3个字符
|
|
|
+ * amount 金额 12整数,2位小数
|
|
|
+ * objectName 订单款项描述 200 字符
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/unionPay/sms", method = RequestMethod.POST)
|
|
|
+ public String khPaySMS(Boolean isPersonal, @RequestBody String currency) {
|
|
|
+ System.out.println(currency);
|
|
|
+ //String khPaySMS = pingAnFacade.khPaySMS(map, isPersonal);
|
|
|
+ logger.log("平安支付控制器", "跨行支付绑卡", "快捷支付发送短信");
|
|
|
+ return currency;
|
|
|
+ }
|
|
|
}
|