Parcourir la Source

依赖3.1版本后修改编译错误

zhanglong7 5 ans auparavant
Parent
commit
87d3a87f6b

+ 2 - 2
ipu-plugin-basic/src/main/java/com/ai/ipu/mobile/plugin/MobileCamera.java

@ -104,8 +104,8 @@ public class MobileCamera extends Plugin {
104 104
	public void getPhoto(JSONArray param) throws Exception {
105 105
		this.func = Function.getPhoto;
106 106
		int type = param.getInt(0);
107
		minFileSize = param.optInt(1);
108
        minWidth = param.optInt(2);
107
		minFileSize = param.optInt(1, 400 * 1024);
108
        minWidth = param.optInt(2, 400 * 1024);
109 109
110 110
		String appName = IpuAppInfo.getAppPath();
111 111
		String photoName = appName + "-" + format.format(new Date()) + ".jpg";// 生成照片名称

+ 1 - 1
ipu-plugin-basic/src/main/java/com/ai/ipu/mobile/plugin/MobileFile.java

@ -97,7 +97,7 @@ public class MobileFile extends Plugin{
97 97
		try {
98 98
			MobileOperation.openFile(context, file);
99 99
		} catch (ActivityNotFoundException e) {
100
			MobileOperation.openFile(context, file, FileUtil.MIME_MAP_TABLE[0][1]);
100
			MobileOperation.openFile(context, file, "*/*");
101 101
		}
102 102
	}
103 103