{"errCode":"uni-id-param-required","errMsg":"Parameter required: unieid"}
- 发布:2023-05-04 10:48
- 更新:2023-10-13 16:51
- 阅读:425
产品分类: uniCloud/App
示例代码:
操作步骤:
POST /your-uni-id-co-path/externalRegister
POST /your-uni-id-co-path/externalRegister
预期结果:
返回新token
返回新token
实际结果:
{"errCode":"uni-id-param-required","errMsg":"Parameter required: unieid"}
{"errCode":"uni-id-param-required","errMsg":"Parameter required: unieid"}
bug描述:
联登突然不能用了,错误提示出很奇怪 "errMsg":"Parameter required: unieid"
uni-id-invalid-param为什么老提示这种信息呢,弄了两天还是没搞明白
php代码拿过来,域名化是用默认域名的。本地测试的。
RequestID ac1cd3721697186606212149135
我设置一样的params也不行呢。
$params = [
"externalUid"=>3,
"nickname"=>"aaa",
"avatar"=>"1.jpg",
"gender"=>0
];
$sign = new Sign($requestAuthSecret);
$signature = $sign->getSignature($params, $nonce, $timestamp);
curL:
$url = 'https://xxxxxxx.next.bspapp.com/uni-id-co/externalRegister';
$dada = array(
'clientInfo'=>array(
"uniPlatform"=>"web",
"appId"=>"xxxxx"
),
'params'=>array(
"externalUid" => 3,
"nickname" => "aaa",
"avatar" => "1.jpg",
"gender" => 0,
)
);
为什么为什么呢。。。
M_先生
您好,我没太懂
/your-uni-id-co-path/externalRegister
这里请求API地址是什么,your-uni-id-co-path
又是什么,从哪里获取2023-05-06 15:27
DCloud_uniCloud_CRL
回复 M_先生: 对 uni-id-co 云函数开通URL化访问,your-uni-id-co-path 就是你给云函数设置的URL化路径。
2023-05-06 17:35
M_先生
回复 DCloud_uniCloud_CRL: 谢谢,看文档看的有点懵,我再仔细看看
2023-05-06 17:50