iv-npm 1.7.71 → 1.7.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -16,10 +16,7 @@
|
|
|
16
16
|
result += chars[Math.floor(Math.random() * chars.length)];
|
|
17
17
|
return result;
|
|
18
18
|
}
|
|
19
|
-
var messageId =
|
|
20
|
-
10,
|
|
21
|
-
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
22
|
-
);
|
|
19
|
+
var messageId = null
|
|
23
20
|
|
|
24
21
|
var fileBase64Str = "";
|
|
25
22
|
var file_path = "";
|
|
@@ -135,6 +132,8 @@
|
|
|
135
132
|
if (path == "") {
|
|
136
133
|
window.parent.postMessage({ message: "拍照成功", messageId: messageId }, "*");
|
|
137
134
|
} else {
|
|
135
|
+
console.log(messageId,'135');
|
|
136
|
+
|
|
138
137
|
window.parent.postMessage(
|
|
139
138
|
{
|
|
140
139
|
message: "拍照成功,图片保存位置:" + path,
|
|
@@ -203,6 +202,11 @@
|
|
|
203
202
|
alert("浏览器不支持HTML5,请更新或者使用其它浏览器!");
|
|
204
203
|
}
|
|
205
204
|
//console.log("LoadCameraDocument");
|
|
205
|
+
messageId = getMessageId(
|
|
206
|
+
10,
|
|
207
|
+
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
208
|
+
);
|
|
209
|
+
console.log(messageId,'207');
|
|
206
210
|
var obj = document.getElementById("CameraCtl");
|
|
207
211
|
Cam_ControlInit(obj, 0, 0, 600, 400);
|
|
208
212
|
}
|