|  |  | 
 |  |  | 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; | 
 |  |  | 
 |  |  |     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; | 
 |  |  | 
 |  |  |               return  json.getString("data"); | 
 |  |  |           } | 
 |  |  |       }catch (Exception e){ | 
 |  |  |  | 
 |  |  |           e.printStackTrace(); | 
 |  |  |       } | 
 |  |  |       return null; | 
 |  |  |  | 
 |  |  | 
 |  |  |               return  json.getString("data"); | 
 |  |  |           } | 
 |  |  |       }catch (Exception e){ | 
 |  |  |           e.printStackTrace(); | 
 |  |  |  | 
 |  |  |       } | 
 |  |  |       return null; | 
 |  |  | 
 |  |  |             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(); |