如题,
接口图片校验:cloud.openapi.security.img,开发工具上传都无问题,线上发版后真机各种bug。
都已经发版本了,直接提示图片超过max size。可是开发工具提交相同图片,没有任何问题。
图片不超过1M。100k都不到。
1.发布版本,出错。
2.真机调试,也是出错。
Error: errCode: -1 | errMsg: cloud.callFunction:fail Error: data exceed max size (callId: 1588248668719-0.3950792483647896) (trace: 20:11:8 start->20:11:15 system error (Error: data exceed max size), retry->20:11:23 system error (Error: data exceed max size), retry->20:11:27 system error (Error: data exceed max size), abort); at cloud.callFunction api;
at new u (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:251050)
at d (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:251557)
at f (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:251652)
at eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:417028)
at t (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:65689)
at eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:65811)
at e (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:68267)
at e.exports (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:27077)
at y.<computed> (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:32480)
at Number.r (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:32179)
3.开发工具上传,没有任何问题。
- [云函数] [openapi] requestimgSecCheck 调用成功: {errMsg: "cloud.callFunction:ok", result: {…}, requestID: "9c5c704f-8adc-11ea-9a0e-5254002a370e"}
- errMsg: "cloud.callFunction:ok"
- requestID: "9c5c704f-8adc-11ea-9a0e-5254002a370e"
- result: {errMsg: "openapi.security.imgSecCheck:ok", errCode: 0}
- __proto__: Object
哎。天天不知道弄什么,要内容检测、图片检测,
天天审核上传非法图片,拒绝通过我的代码,
结果对接了真机用不了。
已解决
老哥解决了么?同样问题.100kb图片真机会报max限制.发帖这里也没人回
老哥解决了吗 头疼