Commit a91cee4d authored by liujiangnan's avatar liujiangnan

feat

parent 11878fbb
...@@ -560,16 +560,16 @@ export default class NewClass extends middleLayerBase { ...@@ -560,16 +560,16 @@ export default class NewClass extends middleLayerBase {
const arr = str.split(","); const arr = str.split(",");
const pms = {}; const pms = {};
if (arr[0]!=undefined&&arr[0]!=null) { if (arr[0]!=undefined&&arr[0]!=null) {
pms["x"] = arr[0] pms["x"] = parseInt(arr[0]);
} }
if (arr[1]!=undefined&&arr[1]!=null) { if (arr[1]!=undefined&&arr[1]!=null) {
pms["y"] = arr[1] pms["y"] = parseInt(arr[1]);
} }
if (arr[2]!=undefined&&arr[2]!=null) { if (arr[2]!=undefined&&arr[2]!=null) {
pms["width"] = arr[2] pms["width"] = parseInt(arr[2]);
} }
if (arr[3]!=undefined&&arr[3]!=null) { if (arr[3]!=undefined&&arr[3]!=null) {
pms["height"] = arr[3] pms["height"] = parseInt(arr[3]);
} }
this.hideUI(); this.hideUI();
(<any>window).courseware.openRecognitionCamera(pms, ()=>{ (<any>window).courseware.openRecognitionCamera(pms, ()=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment