admin
2021-10-21 7e2ac66d7c532a5725635fa3913789bb17c1e157
library-base/src/main/java/com/yeshi/base/utils/http/API.java
@@ -10,6 +10,7 @@
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;
@@ -55,6 +56,7 @@
                        : 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;
    }
@@ -87,14 +89,14 @@
    }
    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 + "");