shichongfu
2023-04-25 ce0b49552668d3331055e2b1a1447a743dc54939
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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;
    }
    
}