package com.product.admin.service; import org.springframework.stereotype.Component; import com.alibaba.fastjson.JSONObject; import com.product.core.config.Global; import com.product.core.rsa.RSAUtil; @Component public class SystemConfigurationParameterService { public JSONObject getAllSystemConfigParam() { JSONObject json=new JSONObject(); //附件存放方式 json.put("signature_key", Global.getSystemConfig("signature.key", "")); //本地附件服务器地址 json.put("login_ecc_isEnable", Global.getSystemConfig("login.ecc.isEnable","")); json.put("signature_isEnable", Global.getSystemConfig("signature.isEnable","")); //接口签名认证有效期,单位秒,0表示不验证 json.put("signature_expire", Global.getSystemConfig("signature.expire","0")); //前端地址 json.put("web_server_url", Global.getSystemConfig("mobile.web.server.url","0")); //消息服务器地址 json.put("message_server_ip", Global.getSystemConfig("message.server.ip","")); json.put("message_server_port", Global.getSystemConfig("message.server.port","")); //用户名加密 json.put("rsa_key", RSAUtil.getPublicKey()); return json; } }