示例#1
0
 public static boolean hasRequestParam(String paramString)
 {
   if (!WebUtils.isFromDP(paramString));
   do
   {
     return false;
     paramString = sParamPattern.matcher(paramString);
   }
   while (!paramString.find());
   Log.d(TAG, "find param: " + paramString.group());
   return true;
 }
示例#2
0
 public String addDefaultParams(String paramString)
 {
   if (!WebUtils.isFromDP(paramString))
     return paramString;
   Uri.Builder localBuilder = Uri.parse(paramString).buildUpon();
   if (!paramString.contains("token="))
     localBuilder.appendQueryParameter("token", "*");
   if (!paramString.contains("agent="))
     localBuilder.appendQueryParameter("agent", "*");
   if (!paramString.contains("cityid="))
     localBuilder.appendQueryParameter("cityid", "*");
   if (!paramString.contains("version="))
     localBuilder.appendQueryParameter("version", "*");
   return localBuilder.build().toString();
 }
示例#3
0
 public boolean isInWhiteList(String paramString)
 {
   int i = 0;
   if (!WebUtils.isFromDP(getUrl()))
   {
     paramString = getContext().getSharedPreferences("webview_jsbridge_settings", 0);
     if (!isDebug())
       break label50;
   }
   label50: for (boolean bool = true; ; bool = false)
   {
     if (paramString.getBoolean("whitelistdisable", bool))
       i = 1;
     return i;
   }
 }