Beispiel #1
0
 public string getServerRoot()
 {
     if (StringUtils.isBlank(serverRoot))
     {
         serverRoot = YopConfig.getServerRoot();
     }
     return(serverRoot);
 }
Beispiel #2
0
 public YopRequest()
 {
     this.appKey     = YopConfig.getAppKey();
     this.secretKey  = YopConfig.getSecret();
     this.serverRoot = YopConfig.getServerRoot();
     if (YopConfig.getAppKey() != null)
     {
         paramMap.Add(YopConstants.APP_KEY, YopConfig.getAppKey());
     }
     paramMap.Add(YopConstants.FORMAT, format.ToString());
     paramMap.Add(YopConstants.VERSION, version);
     paramMap.Add(YopConstants.LOCALE, locale);
     paramMap.Add(YopConstants.TIMESTAMP, TimeStamp.GetTimeStamp().ToString());
 }