zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    git命令
    svg学习系列02-简单的svg图形和线条
    svg学习系列01-svg简介
    jQuery分页插件
    svg简介
    css3选择器
    sublime使用
    HTML5新特性
    html新的语义化标签和表单控件
    DOM详解
  • 原文地址:https://www.cnblogs.com/findumars/p/10236619.html
Copyright © 2011-2022 走看看