|
|
@@ -7,6 +7,7 @@ import com.uas.platform.b2c.fa.payment.constant.PingAnRequestUrlPostfix;
|
|
|
import com.uas.platform.b2c.fa.payment.constant.StringConstant;
|
|
|
import com.uas.platform.b2c.fa.payment.service.BankReceiptsService;
|
|
|
import com.uas.platform.b2c.fa.payment.support.UserInfoSupport;
|
|
|
+import com.uas.platform.b2c.trade.support.ResultMap;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
@@ -44,8 +45,8 @@ public class BankReceiptsServiceImpl implements BankReceiptsService {
|
|
|
@Override
|
|
|
public String bindCard(Boolean isPersonal) {
|
|
|
Map<String, String> map = userInfoSupport.getUserInfoMap(isPersonal);
|
|
|
- String httpEntity = restTemplate.postForObject(sysConf.getPingAnUrl() + PingAnRequestUrlPostfix.BINDCARD, map, String.class);
|
|
|
- return httpEntity;
|
|
|
+ ResultMap resultMap = restTemplate.postForObject(sysConf.getPingAnUrl() + PingAnRequestUrlPostfix.BINDCARD, map, ResultMap.class);
|
|
|
+ return resultMap.getMessage();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -55,9 +56,9 @@ public class BankReceiptsServiceImpl implements BankReceiptsService {
|
|
|
* @return String
|
|
|
*/
|
|
|
@Override
|
|
|
- public String queryBindCard(Boolean isPersonal) {
|
|
|
+ public ResultMap queryBindCard(Boolean isPersonal) {
|
|
|
Map<String, String> map = userInfoSupport.getUserInfoMap(isPersonal);
|
|
|
- String resultStr = restTemplate.postForObject(sysConf.getPingAnUrl() + PingAnRequestUrlPostfix.QUERYBINDCARD, map, String.class);
|
|
|
+ ResultMap resultStr = restTemplate.postForObject(sysConf.getPingAnUrl() + PingAnRequestUrlPostfix.QUERYBINDCARD, map, ResultMap.class);
|
|
|
return resultStr;
|
|
|
}
|
|
|
|