qiuyao
2025-04-01 83060515d1428bf2704b67fbe7f49abf0b2cdb9a
修改获取人脸识别的token
已修改1个文件
2 ■■■ 文件已修改
项目代码/WIDESEAWCS_Server 正式/WIDESEAWCS_Common/BaiDuFaceHelper.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ÏîÄ¿´úÂë/WIDESEAWCS_Server Õýʽ/WIDESEAWCS_Common/BaiDuFaceHelper.cs
@@ -17,7 +17,7 @@
        /// <returns></returns>
        public static string GetAccessToken()
        {
            string url = string.Format("https://aip.baidubce.com/oauth/2.0/token?client_id={0}&client_secret={1}", "TqFQHXSNt6Z7cPQ4vDBfBNjq", "0cli6I6s8JFz3qM1Czi5ciRpDqrJuVvm");
            string url = string.Format("https://aip.baidubce.com/oauth/2.0/token?client_id={0}&client_secret={1}&grant_type={2}", "TqFQHXSNt6Z7cPQ4vDBfBNjq", "0cli6I6s8JFz3qM1Czi5ciRpDqrJuVvm", "client_credentials");
            string returnStr = BDWebRequest(url, "", "POST");
            NLog.LogManager.GetCurrentClassLogger().Trace("百度人脸识别返回:" + returnStr);