• unigui验证微信服务器的有效性


    UNIGUI验证微信服务器的有效性:

    ////////////////////////////////////////////

    //UniGUIServerModuleHTTPCommand

    //公众平台验证服务器地址的有效性

    ////////////////////////////////////////////

    procedure TUniServerModule.UniGUIServerModuleHTTPCommand(

      ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo;

      var Handled: Boolean);

    begin

        if CheckSignature(ARequestInfo) then//微信验证服务器地址的有效性

        begin

          if ARequestInfo.Params.Values['echostr']<>'' then

          begin

            Handled := true;

            AResponseInfo.CharSet := 'UTF-8';

            AResponseInfo.ContentType := 'UTF-8';

            AResponseInfo.ContentText :=ARequestInfo.Params.Values['echostr'];//签名比较成功后返回echostr的内容就可以。

          end;

        end;

     end;

    https://www.cnblogs.com/qiufeng2014/p/6920535.html

  • 相关阅读:
    html页面自适应宽度
    Angularjs Select获取数组下标
    spring boot集成mybatis分页插件
    百度分享实现https
    nginx自定义错误页面
    nginx代理tomcat
    Nginx配置SSL证书
    Nginx安装
    xmlns:amq="http://activemq.apache.org/schema/core"报错
    ActiveMQ
  • 原文地址:https://www.cnblogs.com/findumars/p/10236619.html
Copyright © 2020-2023  润新知