{"error":{"code":899003,"message":"parameter invalid!"}} 老是返回这个错误,该有的参数都有了,不知道哪里还有问题

5812acacs
2019-08-22 09:56 461 0

```
Jiguang.JMessage.JMessageClient client = new Jiguang.JMessage.JMessageClient(_appkey, _secret);
Dictionary<string, string> dic = new Dictionary<string, string>
{
{ "userType","1"}, { "chatId", ownUserid.ToString()}, { "merchantId",merchantid.ToString()}, { "merchantName",merchantName},
{ "imageUrl",""}, { "productName",""}, { "productId",productid.ToString()}, {"price","" }
};
TextMessage msg = new TextMessage();

            msg.TargetId = tuserid.ToString();
            msg.TargetType = "single";
            msg.FromId = fuserid.ToString();
            msg.TargetAppKey = _appkey;
            msg.TargetName = "2222222";
            msg.FromName = "111111";
            msg.IsNoNotification = true;
            TextMessage.MessageBody body = new TextMessage.MessageBody();
            body.Text = contents;

            body.Extras = dic;
            msg.Content = body;
            Jiguang.JMessage.Common.HttpResponse response = client.Message.Send(msg);
            string json = response.Content;

1个回答

热门排序
  • 把你完整的请求参数给一下,在报错之前,日志里面应该是会打印实际传到极光这边来的参数