| | |
| | | import org.springframework.cache.annotation.Cacheable;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | | import org.yeshi.utils.entity.ProxyIP;
|
| | |
|
| | | import com.google.gson.Gson;
|
| | | import com.yeshi.fanli.dao.config.ConfigDao;
|
| | |
| | | return configDao.find(Config.class, id);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public ProxyIP getTaoBaoProxyIP() {
|
| | | String value = get("taobao_proxy_ip");
|
| | | try {
|
| | | String[] sts = value.split(":");
|
| | | return new ProxyIP(sts[0], Integer.parseInt(sts[1]));
|
| | | } catch (Exception e) {
|
| | | }
|
| | | return null;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getAppHomeFloatNotifyImg() {
|
| | |
|
| | | return get("home_float_notify_img");
|
| | | }
|
| | |
|
| | | }
|