jiangping
2024-06-20 09da100729793848bc01b51f7b05ca3f1e7ec64f
server/service/src/main/java/com/doumee/service/business/third/SignService.java
@@ -15,6 +15,7 @@
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
@@ -53,6 +54,8 @@
    private static String SERVICE_URL="https://api.sandbox.junziqian.com";
    private static  String APP_KEY="dcb4bd535a09df3c";
    private static  String APP_SECRET="b87c346edcb4bd535a09df3ca8c45d9a";
    @Value("${debug_model}")
    private Boolean debugModel;
    @Autowired
    private SystemDictDataBiz systemDictDataBiz;
@@ -296,7 +299,7 @@
              return  json.getString("data");
          }
      }catch (Exception e){
          e.printStackTrace();
      }
      return null;
@@ -344,6 +347,7 @@
              return  json.getString("data");
          }
      }catch (Exception e){
          e.printStackTrace();
      }
      return null;
@@ -373,7 +377,11 @@
            saveInterfaceLog(url,"【电子签】获取签署链接地址",JSONObject.toJSONString(params),str);
            JSONObject json = JSONObject.parseObject(str);
            if(json!=null && json.getBoolean("success")){
                return  json.getString("data");
                String link =json.getString("data");
                if(!debugModel){
                    link = link.replace("https://h5","https://h7");
                }
                return link;
            }
        }catch (Exception e){
            e.printStackTrace();