找来好久才找到bug: 这个案例 害死人!!! var encrypted = cryptor.encrypt(data); curl -X post -d '{"encrypt": encrypted}' "https://chatbot.weixin.qq.com/openapi/sendmsg/{TOKEN}" 1. var encrypted = cryptor.encrypt(data); 得到的是: <xml> <managerid><![CDATA[ciBGJwwgE6b]]></managerid> </xml>|59 <xml> <Encrypt><![CDATA[PwK09WOWKQGBp9NmV1LjPaDwtoPGlbCtD5IrnA54xt7AZqvJ9n5nWeViBiuOdNd4voO5c1Y/EDCUARxPJz4Etog6eBdmwd+s9lCcdcDxTSDfgf90YLu18ZmcaUSYTi72]]></Encrypt> <MsgSignature><![CDATA[bedd2f47e004e10951c0408ad40363d890044f86]]></MsgSignature> <TimeStamp>1713171408</TimeStamp> <Nonce><![CDATA[134567778]]></Nonce> 第二步: curl -X post -d '{"encrypt": encrypted}' "https://chatbot.weixin.qq.com/openapi/sendmsg/{TOKEN}" encrypted 的值 不是 <xml> <managerid><![CDATA[ciBGJwwgE6b]]></managerid> </xml>|59 <xml> <Encrypt><![CDATA[PwK09WOWKQGBp9NmV1LjPaDwtoPGlbCtD5IrnA54xt7AZqvJ9n5nWeViBiuOdNd4voO5c1Y/EDCUARxPJz4Etog6eBdmwd+s9lCcdcDxTSDfgf90YLu18ZmcaUSYTi72]]></Encrypt> <MsgSignature><![CDATA[bedd2f47e004e10951c0408ad40363d890044f86]]></MsgSignature> <TimeStamp>1713171408</TimeStamp> <Nonce><![CDATA[134567778]]></Nonce> 而是: PwK09WOWKQGBp9NmV1LjPaDwtoPGlbCtD5IrnA54xt7AZqvJ9n5nWeViBiuOdNd4voO5c1Y/EDCUARxPJz4Etog6eBdmwd+s9lCcdcDxTSDfgf90YLu18ZmcaUSYTi72
智能对话-发送客服消息?https://openai.weixin.qq.com/openapi/sendmsg/{TOKEN} 能给一个完整的示例吗? 接口一直报 {"errcode":1019,"errmsg":"data encrypt is incorrect, please check the doc.","rid":"1c0daf82"}
04-15还是打不开。 github 上有吗。 501错误抱歉,当前页面无法正常访问!由于您提交的信息对网站可能造成威胁, 出于安全考虑,您的访问被拦截。
java sample code 链接无效https://developers.weixin.qq.com/doc/aispeech/confapi/dialog/sendmsg.html java sample code 链接无效
2023-05-18curl -X post -d'{"encrypt": " <xml> <Encrypt><![CDATA[vxUyMqabnKo92pXlvPiKB0t7G9fzLBEeV9twa6orqoAj/jAs1sYIP9Wt6z/uEwI5QZvuBQaSrzFpQEfp8QBnAjjzG0WXSgSuLQfbus1r8Gb7W57wN8LIUg+astTrrDUdH8bFVmLkwd2UHZmip4Cm1KU00RQ24vJiaz23TMboH18kzsbmlAXx1oSMTdQEoS2UbGKqc1xyB+Xusr2kwvUphFC3j2M1lPtdeBRypKwiO21ZxfuxtXiMJ/OutN8zE4WXy1nH5PkRr6RfHGgOardviUTRGVtIBG9CKWPlO6TH5vLQNq6ortgnfJqYp/EQoSMkgmVzc/3x03CcZ+7GGP/7cJDG7hOgxhwMgj3UCRIoJK1Ixo6uhqv1BXDrm1J2PqPdjDI+1j5C3CDJeHnyfUhDvbORIeJvlpbLBGRXVmk58VsrMlp8ZLdIeuhZK+G3T1g2Dn45SHE7V8bMqPMW6XC+X5bYMmMI4nqC/lnLxTqV74/mZY68U/IX4g11YaBmuMeXoUEg+48oPNL1cgFP/8HX2oeFKBZm8EtuBADxcDQBjCJzZsFagKAfh3oe9aNDSf6gWV//DAAUFAL9/VFNheiilvdJD9FBMycajifVh00xbMai/d64G6omX73BfNY/ziJocdzWiCrPVXo3Nc5TwqNRAoR71Fcia/Nknf5ypBay+H88WE9Ev+1FD3g7D77TpGVlqfRX0DWO+QiG/lcqoMPtGfLNh/E2ujDxbho1JZ/QUQuk7RVOSm0T/VECoq73a0Al7TmWceVoSdPE4xh0JaV09sQVt3+fwBLcSxyMfOLWz1/Mk7FHQG6ovbzY/TKFL1/Y8V+jiFNIlsxeJWApJa+Q7jmLKHkqyEf3hDcFaxkxbb4qMfnhlVzXYZWMfoKWbBWi6j/2wnPJXv4//VPml2/+9IodgxmEVTjiN+0tmmeWr0uPJbft5esYALXUqFSS8YNPSqQVtUO9pPGumqRBbOi+7w==]]></Encrypt> <MsgSignature><![CDATA[5206a268a2589ac71269793027881143d8714229]]></MsgSignature> <TimeStamp>1683171118</TimeStamp> <Nonce><![CDATA[1320562132]]></Nonce> </xml> " }' -H "content-type:application/json" "https://chatbot.weixin.qq.com/openapi/sendmsg/Jyk46oNcndTZr3OSsstEJ6s0e0OXAK" {"code":"ERR_OSSL_EVP_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH","errcode":"ERR_OSSL_EVP_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH","errmsg":"Error: error:0606508A:digital envelope routines:EVP_DecryptFinal_ex:data not multiple of block length","rid":"0b517268"}% 的确会报 ERR_OSSL_EVP_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH
第三方客服系统接入- 发送客服消息接口报错https://developers.weixin.qq.com/doc/aispeech/confapi/thirdkefu/sendmsg.html 第三方客服系统接入- 发送客服消息接口发送消息是报这个错 "code":"ERR_OSSL_EVP_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH","errcode":"ERR_OSSL_EVP_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH","errmsg":"Error: error:0606508A:digital envelope routines:EVP_DecryptFinal_ex:data not multiple of block length","rid":"06482640" 这是什么原因?
2023-05-04