编译环境:Windows 7 +Delphi xe 10.3.2

封装了快递鸟接口,注意的坑:MD5要转为小写。

function TKDniaoAPI.StrtoMd5(const str: string): string;
var
  AMD5: TIdHashMessageDigest5;
begin
  AMD5 := TIdHashMessageDigest5.Create;
  try
    Result := AnsiLowerCase(AMD5.HashStringAsHex(str, IndyTextEncoding(TEncoding.UTF8)));
     //注意转小写
  finally
    AMD5.Free;
  end;
end;

Delphi xe 10.3.2-快递接口封装-【快递鸟(即时查询和单号识别)】

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-11-21
  • 2021-09-21
  • 2021-12-04
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2021-11-21
  • 2021-11-21
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
相关资源
相似解决方案