callMicroService 返回的数据 为啥不能读取呢?JSON.parse(ret)也不行

Dec 11, 2021, 3:38:47 PM
  var ret = callMicroService('call_inshop', [shopname,shopsaleNO]);
   var redate=JSON.parse(ret);
    console.log('call ret:' + redate);//{"data":"{\"err\":1,\"msg\": \"任务已创建\"}","status":200} 
    console.log('call ret:' + redate.status);

提示错误

511 15:34:16.516 error FunctionExpr NoSuchMethodException--  obj:com.libra.sar.robot.jsengine.var.object.json.JSON@cd1116d  item:parse
512 15:34:16.523  call ret:null
513 15:34:16.529 error VarExpr getDeclaredMethod:java.lang.NoSuchMethodException: getStatus []
514 15:34:16.536 error VarExpr method is null:getStatus  cls:class com.libra.sar.robot.jsengine.var.object.a
515 15:34:16.538  call ret:null
发表评论
最新评论
商务合作QQ:2231485359
Copyright © 2021-2024 冰狐智能辅助. All rights reserved. 浙ICP备15043866号-4 《冰狐智能辅助服务协议》