admin
2022-01-28 760aee20870a34e6130a1c12237c5b747e2b00bd
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 + "");