企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## **加密方法** ## <blockquote class="danger"><p>注意事项:$params 即为接口所有公参数</p></blockquote> #### PHP代码 ``` php     function getSign($params,$appKey)     {         unset($params['sign']);         ksort($params);         $queryString = http_build_query($params);         $str = $appKey . $queryString;         $newSign = md5($str);         return $newSign;     }     $arr = [       "slug" => "os_OdmQXld68W",      "server\_id" => "90001",       "server" => "测试1服",       "role_id" => "3783025113969696769",       "role_name" => "关羽",       "operate_time" => "1644635862",       "type" => 2     ];     getSign($arr,'50552cc9f59d40f3be117b10a1c1c615'); ```