签名生成
<h3>签名生成</h3>
<p><strong>步骤1:</strong>确保Key首字母是大写,若是空值不参与,并根据参数名称对所有参数进行升序排序。</p>
<pre><code>参数列表:&quot;Abc=value1 Bcd=value2 Bad=value3&quot;
排序结果: &quot;Abc=value1 Bad=value3 Bcd=value2&quot;</code></pre>
<p><strong>步骤2:</strong>将所有参数用 '&' 连接起来,得到需要签名的字符串。</p>
<pre><code>&quot;Abc=value1&amp;Bad=value3&amp;Bcd=value2&quot;</code></pre>
<p><strong>步骤3:</strong>将字符串与 AppSecret 拼接。</p>
<pre><code>&quot;Abc=value1&amp;Bad=value3&amp;Bcd=value2&amp;AppSecret&quot;</code></pre>
<p><strong>步骤4:</strong>使用 MD5 对步骤 3 中的字符串进行签名。</p>
<pre><code>MD5GetSign(&quot;Abc=value1&amp;Bad=value3&amp;Bcd=value2&amp;AppSecret&quot;)</code></pre>
<p><strong>步骤5: </strong>最后将计算出的 MD5 哈希值转换为小写字符串形式。</p>