| | |
| | | import com.loopj.android.http.RequestParams; |
| | | import com.loopj.android.http.ResponseHandlerInterface; |
| | | import com.loopj.android.http.SyncHttpClient; |
| | | import com.yeshi.base.utils.YouthUtil; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileNotFoundException; |
| | |
| | | : params.get("Uid")).append(params.get("System")); |
| | | params.put("Sign", MD5Utils.getMD532(sign.toString())); |
| | | params.put("Platform", "Android"); |
| | | params.put("YouthMode", YouthUtil.isOpenYouthMode(context) + ""); |
| | | params.put("Channel", ManifestDataUtil.getAppMetaData(context, "UMENG_CHANNEL")); |
| | | return params; |
| | | } |
| | |
| | | } |
| | | |
| | | public static void commonPost(Context context, String url, |
| | | LinkedHashMap<String, String> params, HashMap<String, File> files, |
| | | ResponseHandlerInterface handler) { |
| | | LinkedHashMap<String, String> params, HashMap<String, File> files, |
| | | ResponseHandlerInterface handler) { |
| | | commonPost(context, url, params, files, handler, true); |
| | | } |
| | | |
| | | public static void commonPost(Context context, String url, |
| | | LinkedHashMap<String, String> params, HashMap<String, File> files, |
| | | ResponseHandlerInterface handler, boolean asyn) { |
| | | LinkedHashMap<String, String> params, HashMap<String, File> files, |
| | | ResponseHandlerInterface handler, boolean asyn) { |
| | | params.put("Package", "com.mugua.mgvideo");//context.getPackageName() |
| | | int version = PackageUtils2.getVersionCode(context); |
| | | params.put("Version", version + ""); |