|
|
@@ -21,15 +21,15 @@ 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) throws Exception {
|
|
|
+ public String faceAuth(boolean isPro, String institutionid, String name, String returnImage, String identificationNumber, String frontUrl, String backUrl, String remark, String url,String path) throws Exception {
|
|
|
Map<String,String> map = CfcaUtil.faceAuth(isPro,institutionid,name,returnImage,identificationNumber,frontUrl,backUrl,remark);
|
|
|
- url = url+"?reqMessage="+map.get("reqMessage")
|
|
|
- +"&reqSignature="+map.get("reqSignature")
|
|
|
- +"&requestDgtlEnvlp="+map.get("requestDgtlEnvlp")
|
|
|
- +"&requestSignSN="+map.get("requestSignSN")
|
|
|
- +"&requestEncryptSN"+map.get("requestEncryptSN");
|
|
|
+ url = url+"?message="+map.get("reqMessage")
|
|
|
+ +"&signature="+map.get("reqSignature")
|
|
|
+ +"&dgtlenvlp="+map.get("requestDgtlEnvlp")
|
|
|
+ +"&signSN="+map.get("requestSignSN")
|
|
|
+ +"&encryptSN"+map.get("requestEncryptSN");
|
|
|
String fileName = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".jpg";
|
|
|
- String fileUrl = createQrCode(url,"D://",fileName);
|
|
|
+ String fileUrl = createQrCode(url,path,fileName);
|
|
|
return fileUrl;
|
|
|
}
|
|
|
public static String createQrCode(String url, String path, String fileName) {
|
|
|
@@ -48,17 +48,18 @@ public class CfcaFaceAuthServiceImpl implements ICfcaFaceAuthService {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) throws Exception {
|
|
|
-
|
|
|
- Map<String,String> map = CfcaUtil.faceAuth(false,"100804","李三","","370724199512106110","http://localhost:8080/ReceiveNoticePage","http://localhost:8080/ReceiveNoticeBackground","");
|
|
|
- System.out.println(map);
|
|
|
-// String url= "http://zcyl.keao.tech/auth";
|
|
|
-// url = url+"?reqMessage="+map.get("reqMessage")
|
|
|
-// +"&reqSignature="+map.get("reqSignature")
|
|
|
-// +"&requestDgtlEnvlp="+map.get("requestDgtlEnvlp")
|
|
|
-// +"&requestSignSN="+map.get("requestSignSN")
|
|
|
-// +"&requestEncryptSN"+map.get("requestEncryptSN");
|
|
|
+// public static void main(String[] args) throws Exception {
|
|
|
+//
|
|
|
+// Map<String,String> map = CfcaUtil.faceAuth(false,"100804","李三","","370724199512106110","http://localhost:8080/ReceiveNoticePage","http://localhost:8080/ReceiveNoticeBackground","");
|
|
|
+// System.out.println(map);
|
|
|
+// String url= "http://zcyl.keao.tech/#/";
|
|
|
+// url = url+"?message="+map.get("reqMessage")
|
|
|
+// +"&signature="+map.get("reqSignature")
|
|
|
+// +"&dgtlenvlp="+map.get("requestDgtlEnvlp")
|
|
|
+// +"&signSN="+map.get("requestSignSN")
|
|
|
+// +"&encryptSN="+map.get("requestEncryptSN");
|
|
|
+// System.out.println(url);
|
|
|
// String fileName = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".jpg";
|
|
|
// String fileUrl = createQrCode(url,"D://",fileName);
|
|
|
- }
|
|
|
+// }
|
|
|
}
|