Esempio n. 1
0
 public void onRequestFinish(MApiRequest paramMApiRequest, MApiResponse paramMApiResponse) {
   RequestHandler localRequestHandler = (RequestHandler) this.running.remove(paramMApiRequest);
   if (localRequestHandler != null) {
     localRequestHandler.onRequestFinish(paramMApiRequest, paramMApiResponse);
     return;
   }
   Log.w("mapi_seal", "Sealed leak on " + paramMApiRequest);
 }
Esempio n. 2
0
 public void onDestroy() {
   Iterator localIterator = this.running.keySet().iterator();
   while (localIterator.hasNext()) {
     MApiRequest localMApiRequest = (MApiRequest) localIterator.next();
     this.service.abort(localMApiRequest, this, true);
     Log.i("mapi_seal", "Abort leak request " + localMApiRequest);
   }
 }
Esempio n. 3
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;
 }
 public void onCreate(Bundle paramBundle) {
   super.onCreate(paramBundle);
   super.setContentView(R.layout.submit_scenery_order);
   paramBundle = getIntent().getData().getQueryParameter("shopid");
   try {
     this.shopID = Integer.valueOf(paramBundle).intValue();
     this.ticket = ((DPObject) getIntent().getParcelableExtra("ticket"));
     initView();
     return;
   } catch (Exception paramBundle) {
     while (true) Log.e("FormatException , ex = " + paramBundle.getMessage());
   }
 }
Esempio n. 5
0
 public void onCitySwitched(City paramCity1, City paramCity2)
 {
   paramCity1 = new JSONObject();
   try
   {
     paramCity1.put("action", "switchCity");
     paramCity1.put("cityId", paramCity2.id());
     publish(paramCity1);
     return;
   }
   catch (JSONException paramCity2)
   {
     while (true)
       Log.e(paramCity2.toString());
   }
 }
Esempio n. 6
0
 public void doWebMonitor(String paramString, int paramInt, long paramLong)
 {
   ((MonitorService)DPApplication.instance().getService("monitor")).pv(0L, paramString, 0, 0, paramInt, 0, 0, (int)paramLong);
   Log.d(TAG, "doWebMonitor: command=" + paramString + "; code=" + paramInt + "; elapse=" + (int)paramLong);
 }
Esempio n. 7
0
 private String processParam(String paramString)
 {
   int i = paramString.indexOf('?');
   if (i < 0)
     return paramString;
   String str1 = paramString.substring(0, i + 1);
   Object localObject1 = paramString.substring(i + 1);
   Matcher localMatcher = sParamPattern.matcher(paramString);
   label821: label1218: label1989: 
   while (localMatcher.find())
   {
     Object localObject2 = localMatcher.group();
     Log.d(TAG, "process param: " + (String)localObject2);
     String str2 = ((String)localObject2).substring(1);
     String[] arrayOfString = str2.split("=");
     if (arrayOfString.length <= 1)
       continue;
     arrayOfString[0] = arrayOfString[0].toLowerCase();
     if ((!PARAM_KEYS.contains(arrayOfString[0])) || ((!"*".equals(arrayOfString[1])) && (!"!".equals(arrayOfString[1]))))
       continue;
     localObject2 = localObject1;
     if ("agent".equals(arrayOfString[0]))
       localObject2 = ((String)localObject1).replace(str2, arrayOfString[0] + "=" + "android");
     localObject1 = localObject2;
     if ("version".equals(arrayOfString[0]))
       localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=" + Environment.versionName());
     localObject2 = localObject1;
     if ("screen".equals(arrayOfString[0]))
       localObject2 = ((String)localObject1).replace(str2, arrayOfString[0] + "=" + DeviceUtils.screen(getActivity()));
     localObject1 = localObject2;
     if ("sessionid".equals(arrayOfString[0]))
       localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=" + Environment.sessionId());
     localObject2 = localObject1;
     if ("deviceid".equals(arrayOfString[0]))
       localObject2 = ((String)localObject1).replace(str2, arrayOfString[0] + "=" + DeviceUtils.imei());
     localObject1 = localObject2;
     if ("uuid".equals(arrayOfString[0]))
       localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=" + DeviceUtils.uuid());
     localObject2 = localObject1;
     if ("dpid".equals(arrayOfString[0]))
       localObject2 = ((String)localObject1).replace(str2, arrayOfString[0] + "=" + DeviceUtils.dpid());
     localObject1 = localObject2;
     if ("cityid".equals(arrayOfString[0]))
       localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=" + ((NovaActivity)getActivity()).cityId());
     localObject2 = localObject1;
     Object localObject3;
     Object localObject4;
     label741: label894: int j;
     if ("newtoken".equals(arrayOfString[0]))
     {
       localObject3 = ((BaseAccountService)((NovaActivity)getActivity()).accountService()).newToken();
       if ("*".equals(arrayOfString[1]))
       {
         localObject4 = new StringBuilder().append(arrayOfString[0]).append("=");
         localObject2 = localObject3;
         if (localObject3 == null)
           localObject2 = "";
         localObject2 = ((String)localObject1).replace(str2, (String)localObject2);
       }
     }
     else
     {
       localObject1 = localObject2;
       if ("token".equals(arrayOfString[0]))
       {
         localObject3 = ((NovaActivity)getActivity()).accountService().token();
         if (!"*".equals(arrayOfString[1]))
           break label1480;
         localObject4 = new StringBuilder().append(arrayOfString[0]).append("=");
         localObject1 = localObject3;
         if (localObject3 == null)
           localObject1 = "";
         localObject1 = ((String)localObject2).replace(str2, (String)localObject1);
       }
       localObject4 = getCurrentLocation();
       localObject3 = ((NovaActivity)getActivity()).locationService().location();
       localObject2 = localObject1;
       StringBuilder localStringBuilder;
       if ("latitude".equals(arrayOfString[0]))
       {
         localObject2 = localObject1;
         if ("*".equals(arrayOfString[1]))
         {
           localStringBuilder = new StringBuilder().append(arrayOfString[0]).append("=");
           if (localObject4 != null)
             break label1602;
           localObject2 = "";
           localObject2 = ((String)localObject1).replace(str2, (String)localObject2);
         }
       }
       localObject1 = localObject2;
       if ("longitude".equals(arrayOfString[0]))
       {
         localObject1 = localObject2;
         if ("*".equals(arrayOfString[1]))
         {
           localStringBuilder = new StringBuilder().append(arrayOfString[0]).append("=");
           if (localObject4 != null)
             break label1617;
           localObject1 = "";
           localObject1 = ((String)localObject2).replace(str2, (String)localObject1);
         }
       }
       localObject2 = localObject1;
       if ("accuracy".equals(arrayOfString[0]))
       {
         localObject2 = localObject1;
         if ("*".equals(arrayOfString[1]))
         {
           localStringBuilder = new StringBuilder().append(arrayOfString[0]).append("=");
           if (localObject4 != null)
             break label1632;
           localObject2 = "";
           label967: localObject2 = ((String)localObject1).replace(str2, (String)localObject2);
         }
       }
       localObject1 = localObject2;
       if ("address".equals(arrayOfString[0]))
       {
         localObject1 = localObject2;
         if ("*".equals(arrayOfString[1]))
         {
           if (localObject3 != null)
             break label1648;
           localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=");
         }
       }
       j = 0;
       localObject2 = localObject1;
       i = j;
       if (0 == 0)
       {
         localObject2 = localObject1;
         i = j;
         if ("latitude".equals(arrayOfString[0]))
         {
           localObject2 = localObject1;
           i = j;
           if ("!".equals(arrayOfString[1]))
           {
             if (localObject4 != null)
               break label1740;
             i = 1;
             localObject2 = localObject1;
           }
         }
       }
       label1104: localObject1 = localObject2;
       j = i;
       if (i == 0)
       {
         localObject1 = localObject2;
         j = i;
         if ("longitude".equals(arrayOfString[0]))
         {
           localObject1 = localObject2;
           j = i;
           if ("!".equals(arrayOfString[1]))
           {
             if (localObject4 != null)
               break label1790;
             j = 1;
             localObject1 = localObject2;
           }
         }
       }
       localObject2 = localObject1;
       i = j;
       if (j == 0)
       {
         localObject2 = localObject1;
         i = j;
         if ("accuracy".equals(arrayOfString[0]))
         {
           localObject2 = localObject1;
           i = j;
           if ("!".equals(arrayOfString[1]))
           {
             if (localObject4 != null)
               break label1840;
             i = 1;
             localObject2 = localObject1;
           }
         }
       }
       localObject1 = localObject2;
       j = i;
       if (i == 0)
       {
         localObject1 = localObject2;
         j = i;
         if ("address".equals(arrayOfString[0]))
         {
           localObject1 = localObject2;
           j = i;
           if ("!".equals(arrayOfString[1]))
           {
             if (localObject3 != null)
               break label1891;
             j = 1;
             localObject1 = localObject2;
           }
         }
       }
     }
     while (true)
     {
       if (j == 0)
         break label1989;
       this.mPendingUrl = paramString;
       this.mPendingEvendId = 4;
       if (((NovaActivity)getActivity()).locationService().status() <= 0)
         ((NovaActivity)getActivity()).locationService().refresh();
       if (((NovaActivity)getActivity()).locationService().status() != -1)
         ((NovaActivity)getActivity()).showProgressDialog("正在定位...");
       return null;
       localObject2 = localObject1;
       if (!"!".equals(arrayOfString[1]))
         break;
       if (localObject3 != null)
       {
         localObject2 = ((String)localObject1).replace(str2, arrayOfString[0] + "=" + (String)localObject3);
         break;
       }
       this.mLoginParams.add(new BasicNameValuePair("title", this.mTitle));
       ((NovaActivity)getActivity()).gotoLogin(this.mLoginParams);
       this.mPendingUrl = (str1 + (String)localObject1);
       this.mPendingEvendId = 2;
       return null;
       label1480: localObject1 = localObject2;
       if (!"!".equals(arrayOfString[1]))
         break label741;
       if (localObject3 != null)
       {
         localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=" + (String)localObject3);
         break label741;
       }
       this.mLoginParams.add(new BasicNameValuePair("title", this.mTitle));
       ((NovaActivity)getActivity()).gotoLogin(this.mLoginParams);
       this.mPendingUrl = (str1 + (String)localObject2);
       this.mPendingEvendId = 2;
       return null;
       localObject2 = Location.FMT.format(((Location)localObject4).latitude());
       break label821;
       label1617: localObject1 = Location.FMT.format(((Location)localObject4).longitude());
       break label894;
       label1632: localObject2 = Location.FMT.format(((Location)localObject4).accuracy());
       break label967;
       label1648: if (!android.text.TextUtils.isEmpty(((DPObject)localObject3).getString("Road")))
       {
         localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=" + Uri.encode(((DPObject)localObject3).getString("Address")));
         break label1045;
       }
       localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=");
       break label1045;
       label1740: localObject2 = ((String)localObject1).replace(str2, arrayOfString[0] + "=" + Location.FMT.format(((Location)localObject4).latitude()));
       i = j;
       break label1104;
       label1790: localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=" + Location.FMT.format(((Location)localObject4).longitude()));
       j = i;
       break label1161;
       localObject2 = ((String)localObject1).replace(str2, arrayOfString[0] + "=" + Location.FMT.format(((Location)localObject4).accuracy()));
       i = j;
       break label1218;
       label1891: if (!android.text.TextUtils.isEmpty(((DPObject)localObject3).getString("Road")))
       {
         localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=" + Uri.encode(((DPObject)localObject3).getString("Address")));
         j = i;
         continue;
       }
       localObject1 = ((String)localObject2).replace(str2, arrayOfString[0] + "=");
       j = i;
     }
   }
   label1045: label1602: return (String)(String)(String)(String)(str1 + (String)localObject1);
 }