|
|
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
|
|
|
/**
|
|
|
* 银行收单接口
|
|
|
@@ -40,8 +41,14 @@ public class BankReceiptsController {
|
|
|
* @param isPersonal 是否是个人
|
|
|
*/
|
|
|
@RequestMapping(value = "/unionPay/pay/bindCard", method = RequestMethod.GET)
|
|
|
- public String bindCard(HttpServletRequest request, Boolean isPersonal) {
|
|
|
+ public String bindCard(HttpServletRequest request, Boolean isPersonal, HttpServletResponse response) {
|
|
|
String str = bankReceiptsService.bindCard(request, isPersonal);
|
|
|
+ response.setCharacterEncoding("UTF-8");
|
|
|
+ try {
|
|
|
+ request.setCharacterEncoding("UTF-8");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
logger.log("平安支付控制器", "支付绑卡", "支付时的绑卡");
|
|
|
return str;
|
|
|
}
|