收藏
回答

智能对话设置批量导入(普通)技能-开放接口按文档加密调用一直报1013?

调用设置批量导入(普通)技能-开放接口

https://developers.weixin.qq.com/doc/aispeech/confapi/bot/batchimportskill.html

报错:

{"errcode":1013,"errmsg":"decrypt error, please use the correct way to encrypt the params.","rid":"78e4cf09"}

回答关注问题邀请回答
收藏

1 个回答

  • luyuchao
    luyuchao
    2022-05-06

    正解:注意官方文档中的encrypt,不是将整个加密后的xml赋值给encrypt,而是将encrypt字段作为encrypt的值

    例如得到的加密xml为:

    <xml>
        <Encrypt>
            <![CDATA[OyxEyYR5Q7jeLkV6tBmuNPpYyCvIMt55LXFrw3qxlk1NDndi3J1/34TMtWKrSyRgeKfh+sbjXXwKXcVUOC5r9......N3st3MW6O]]>
        </Encrypt>
        <MsgSignature>
            <![CDATA[69949b3a868b2ec07f04059abc3084126132952f]]>
        </MsgSignature>
        <TimeStamp>1651851331</TimeStamp>
        <Nonce>
            <![CDATA[1320562132]]>
        </Nonce>
    </xml>
    

    则只需要将一下内容赋值给encrypt

    OyxEyYR5Q7jeLkV6tBmuNPpYyCvIMt55LXFrw3qxlk1NDndi3J1/34TMtWKrSyRgeKfh+sbjXXwKXcVUOC5r9......N3st3MW6O
    
    2022-05-06
    有用 1
    回复 1
登录 后发表内容