|
@@ -21,7 +21,7 @@ public class CfcaFaceAuthServiceImpl implements ICfcaFaceAuthService {
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public String faceAuth(boolean isPro, String institutionid, String name, String returnImage, String identificationNumber, String frontUrl, String backUrl, String remark, String url,String path,String imgurl) throws Exception {
|
|
|
+ public Map<String,String> faceAuth(boolean isPro, String institutionid, String name, String returnImage, String identificationNumber, String frontUrl, String backUrl, String remark, String url,String path,String imgurl) throws Exception {
|
|
|
Map<String,String> map = CfcaUtil.faceAuth(isPro,institutionid,name,returnImage,identificationNumber,frontUrl,backUrl,remark);
|
|
|
url = url+"?message="+map.get("reqMessage")
|
|
|
+"&signature="+map.get("reqSignature")
|
|
@@ -31,7 +31,10 @@ public class CfcaFaceAuthServiceImpl implements ICfcaFaceAuthService {
|
|
|
String fileName = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".jpg";
|
|
|
createQrCode(url,path,fileName);
|
|
|
String fileUrl = imgurl+fileName;
|
|
|
- return fileUrl;
|
|
|
+ Map<String,String> reMap = new HashMap<>();
|
|
|
+ reMap.put("originalTxSN",map.get("originalTxSN"));
|
|
|
+ reMap.put("fileUrl",fileUrl);
|
|
|
+ return reMap;
|
|
|
}
|
|
|
public static String createQrCode(String url, String path, String fileName) {
|
|
|
try {
|