caolv
caolv
  • 发布:2024-01-16 14:55
  • 更新:2024-01-16 15:57
  • 阅读:217

uni-ad uniAdCallback报错

分类:uniCloud

在uni-ad广告页面测试,可以。但是在小程序中报错。adpid:1939423164

日志:

[uniAdCallback/ac1cd3651705387563793141370/71ms/DEBUG] event : {
adv: 1,
adsdata: 'eDUtJ50ql0BZsKUto4vvbm2pI47ciQcovAtS7XiwzsuKNPI+E///FdXO24stbxulgk5TB8W9mdqz2a5DwWfOk5z3IuI+rRvAvdZ+01uk2fGcG7LfneJXHEOGu9hPm3I5Iy4Acw2Q+75rfITy7yA1Ew==',
version: 3,
uniIdToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2NTkwMjBjNGEwOWE5YmU3NTM5MzRlYjUiLCJyb2xlIjpbXSwicGVybWlzc2lvbiI6W10sInVuaUlkVmVyc2lvbiI6IjEuMC4xNiIsImlhdCI6MTcwNTM3Nzg2MiwiZXhwIjoxNzA1NjM3MDYyfQ.1tuEscJ4PFb9KwtIjUp8AJlXv_e1EsqDhTQaQ-UcMjU'
}
[uniAdCallback/ac1cd3651705387563793141370/121ms/DEBUG] {
adpid: '1939423164',
userId: '31232142',
extra: '123',
timestamp: 1705387560693,
uniOptions: {}
}
[uniAdCallback/ac1cd3651705387563793141370/271ms/DEBUG] Error: Url or function name invalid
at callUser (/tmp/function/validator-weixin.js:92:13)
at validate (/tmp/function/validator-weixin.js:75:16)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at RunWeixin (/tmp/function/index.validator.js:37:20)
at exports.main (/tmp/function/__index.js:25:23)
at Q (/tmp/function/index.js:1:24393)
at z (/tmp/function/index.js:1:25477)
at runUserFunction (/code/index.js:93:265034)
at (/code/index.js:93:259252)
[uniAdCallback/ac1cd3651705387563793141370/271ms/DEBUG] total-time::200
请求响应状态: success

2024-01-16 14:55 负责人:无 分享
已邀请:
caolv

caolv (作者) - 开发者

解决了,回调函数本来是云对象,改成了云函数之后可以了。

  • 元梦

    我也碰到你这问题了,为什么云对象就不行呀?云对象出来后,官方明明都主推荐用云对象的,难道云对象还有bug?

    2024-06-17 19:12

  • 元梦

    只能换云函数吗?

    2024-06-17 19:13

要回复问题请先登录注册