破晓 发表于 2016-8-18 15:27:07

微信公众平台开发(四) 简单回复功能开发

来源:http://www.cnblogs.com/mchina/p/3155072.html<p></p><div><br></div><div><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;"><span style="line-height: 1.8; font-size: 16px;"><strong><span style="line-height: 1.8; color: rgb(128, 0, 0);">一、简介</span></strong></span></p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;">微信公众平台可以根据用户发送的信息进行判断,然后给出对应的回复,具有良好的交互性。下文将模拟简单的回复功能,根据这个案例,开发者也可以基本理解微信交互的原理,进行更深层次的开发。</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;"><span style="line-height: 1.8; font-size: 16px;"><strong><span style="line-height: 1.8; color: rgb(128, 0, 0);">二、思路分析</span></strong></span></p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;">用户发送过来的文本信息,我们可以提取关键字,通过简单的 if...elseif...else... 实现。</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;">关键代码如下:</p><div class="cnblogs_code" style="margin-top: 5px; margin-bottom: 5px; padding: 5px; border: 1px solid rgb(204, 204, 204); overflow: auto; color: rgb(0, 0, 0); font-family: &quot;Courier New&quot; !important; font-size: 12px !important; background-color: rgb(245, 245, 245);"><div class="cnblogs_code_toolbar" style="margin-top: 5px;"><span class="cnblogs_code_copy" style="padding-right: 5px; line-height: 1.8;"><a title="复制代码" style="color: rgb(0, 0, 0); border: none !important;"><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="max-width: 900px;"></a></span></div><pre style="white-space: pre-wrap; font-family: &quot;Courier New&quot; !important;"><span style="line-height: 1.8; color: rgb(0, 0, 255);">if</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$keyword</span>=="你好"<span style="line-height: 1.8;">){
  </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span> = "hello"<span style="line-height: 1.8;">;
}</span><span style="line-height: 1.8; color: rgb(0, 0, 255);">elseif</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$keyword</span>=="苏州"<span style="line-height: 1.8;">){
  </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span> = "上有天堂,下有苏杭"<span style="line-height: 1.8;">;
}</span><span style="line-height: 1.8; color: rgb(0, 0, 255);">else</span><span style="line-height: 1.8;">{
  </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span> = "感谢您关注【卓锦苏州】 微信号:zhuojinsz"<span style="line-height: 1.8;">;
}</span></pre><div class="cnblogs_code_toolbar" style="margin-top: 5px;"><span class="cnblogs_code_copy" style="padding-right: 5px; line-height: 1.8;"><a title="复制代码" style="color: rgb(0, 0, 0); border: none !important;"><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="max-width: 900px;"></a></span></div></div><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;">如果用户发送"你好",则回复"hello",如果用户发送"苏州",则回复"上有天堂,下有苏杭",其他信息,则回复你的欢迎词。</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;"><span style="line-height: 1.8; font-size: 16px;"><strong><span style="line-height: 1.8; color: rgb(128, 0, 0);">三、完整代码</span></strong></span></p><div class="cnblogs_code" style="margin-top: 5px; margin-bottom: 5px; padding: 5px; border: 1px solid rgb(204, 204, 204); overflow: auto; color: rgb(0, 0, 0); font-family: &quot;Courier New&quot; !important; font-size: 12px !important; background-color: rgb(245, 245, 245);"><div class="cnblogs_code_toolbar" style="margin-top: 5px;"><span class="cnblogs_code_copy" style="padding-right: 5px; line-height: 1.8;"><a title="复制代码" style="color: rgb(0, 0, 0); border: none !important;"><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="max-width: 900px;"></a></span></div><pre style="white-space: pre-wrap; font-family: &quot;Courier New&quot; !important;">&lt;?<span style="line-height: 1.8;">php
</span><span style="line-height: 1.8; color: rgb(0, 128, 0);">/*</span><span style="line-height: 1.8; color: rgb(0, 128, 0);">*
* wechat php test
</span><span style="line-height: 1.8; color: rgb(0, 128, 0);">*/</span>

<span style="line-height: 1.8; color: rgb(0, 128, 0);">//</span><span style="line-height: 1.8; color: rgb(0, 128, 0);">define your token</span>
<span style="line-height: 1.8; color: rgb(0, 128, 128);">define</span>("TOKEN", "zhuojin"<span style="line-height: 1.8;">);
</span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$wechatObj</span> = <span style="line-height: 1.8; color: rgb(0, 0, 255);">new</span><span style="line-height: 1.8;"> wechatCallbackapiTest();
</span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$wechatObj</span>-&gt;<span style="line-height: 1.8;">responseMsg();
</span><span style="line-height: 1.8; color: rgb(0, 128, 0);">//</span><span style="line-height: 1.8; color: rgb(0, 128, 0);">$wechatObj-&gt;valid();</span>

<span style="line-height: 1.8; color: rgb(0, 0, 255);">class</span><span style="line-height: 1.8;"> wechatCallbackapiTest
{
    </span><span style="line-height: 1.8; color: rgb(0, 128, 0);">/*</span><span style="line-height: 1.8; color: rgb(0, 128, 0);">public function valid()
    {
      $echoStr = $_GET["echostr"];

      //valid signature , option
      if($this-&gt;checkSignature()){
            echo $echoStr;
            exit;
      }
    }</span><span style="line-height: 1.8; color: rgb(0, 128, 0);">*/</span>

    <span style="line-height: 1.8; color: rgb(0, 0, 255);">public</span> <span style="line-height: 1.8; color: rgb(0, 0, 255);">function</span><span style="line-height: 1.8;"> responseMsg()
    {
      </span><span style="line-height: 1.8; color: rgb(0, 128, 0);">//</span><span style="line-height: 1.8; color: rgb(0, 128, 0);">get post data, May be due to the different environments</span>
      <span style="line-height: 1.8; color: rgb(128, 0, 128);">$postStr</span> = <span style="line-height: 1.8; color: rgb(128, 0, 128);">$GLOBALS</span>["HTTP_RAW_POST_DATA"<span style="line-height: 1.8;">];

          </span><span style="line-height: 1.8; color: rgb(0, 128, 0);">//</span><span style="line-height: 1.8; color: rgb(0, 128, 0);">extract post data</span>
      <span style="line-height: 1.8; color: rgb(0, 0, 255);">if</span> (!<span style="line-height: 1.8; color: rgb(0, 0, 255);">empty</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$postStr</span><span style="line-height: 1.8;">)){
               
                  </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$postObj</span> = <span style="line-height: 1.8; color: rgb(0, 128, 128);">simplexml_load_string</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$postStr</span>, 'SimpleXMLElement',<span style="line-height: 1.8;"> LIBXML_NOCDATA);
                </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$RX_TYPE</span> = <span style="line-height: 1.8; color: rgb(0, 128, 128);">trim</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$postObj</span>-&gt;<span style="line-height: 1.8;">MsgType);

                </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">switch</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$RX_TYPE</span><span style="line-height: 1.8;">)
                {
                  </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">case</span> "text":
                        <span style="line-height: 1.8; color: rgb(128, 0, 128);">$resultStr</span> = <span style="line-height: 1.8; color: rgb(128, 0, 128);">$this</span>-&gt;handleText(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$postObj</span><span style="line-height: 1.8;">);
                        </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">break</span><span style="line-height: 1.8;">;
                  </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">case</span> "event":
                        <span style="line-height: 1.8; color: rgb(128, 0, 128);">$resultStr</span> = <span style="line-height: 1.8; color: rgb(128, 0, 128);">$this</span>-&gt;handleEvent(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$postObj</span><span style="line-height: 1.8;">);
                        </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">break</span><span style="line-height: 1.8;">;
                  </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">default</span>:
                        <span style="line-height: 1.8; color: rgb(128, 0, 128);">$resultStr</span> = "Unknow msg type: ".<span style="line-height: 1.8; color: rgb(128, 0, 128);">$RX_TYPE</span><span style="line-height: 1.8;">;
                        </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">break</span><span style="line-height: 1.8;">;
                }
                </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">echo</span> <span style="line-height: 1.8; color: rgb(128, 0, 128);">$resultStr</span><span style="line-height: 1.8;">;
      }</span><span style="line-height: 1.8; color: rgb(0, 0, 255);">else</span><span style="line-height: 1.8;"> {
            </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">echo</span> ""<span style="line-height: 1.8;">;
            </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">exit</span><span style="line-height: 1.8;">;
      }
    }

    </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">public</span> <span style="line-height: 1.8; color: rgb(0, 0, 255);">function</span> handleText(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$postObj</span><span style="line-height: 1.8;">)
    {
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$fromUsername</span> = <span style="line-height: 1.8; color: rgb(128, 0, 128);">$postObj</span>-&gt;<span style="line-height: 1.8;">FromUserName;
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$toUsername</span> = <span style="line-height: 1.8; color: rgb(128, 0, 128);">$postObj</span>-&gt;<span style="line-height: 1.8;">ToUserName;
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$keyword</span> = <span style="line-height: 1.8; color: rgb(0, 128, 128);">trim</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$postObj</span>-&gt;<span style="line-height: 1.8;">Content);
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$time</span> = <span style="line-height: 1.8; color: rgb(0, 128, 128);">time</span><span style="line-height: 1.8;">();
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$textTpl</span> = "<span style="line-height: 1.8;">&lt;xml&gt;
                  &lt;ToUserName&gt;&lt;!]&gt;&lt;/ToUserName&gt;
                  &lt;FromUserName&gt;&lt;!]&gt;&lt;/FromUserName&gt;
                  &lt;CreateTime&gt;%s&lt;/CreateTime&gt;
                  &lt;MsgType&gt;&lt;!]&gt;&lt;/MsgType&gt;
                  &lt;Content&gt;&lt;!]&gt;&lt;/Content&gt;
                  &lt;FuncFlag&gt;0&lt;/FuncFlag&gt;
                  &lt;/xml&gt;</span>"<span style="line-height: 1.8;">;            
      </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">if</span>(!<span style="line-height: 1.8; color: rgb(0, 0, 255);">empty</span>( <span style="line-height: 1.8; color: rgb(128, 0, 128);">$keyword</span><span style="line-height: 1.8;"> ))
      {
            </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$msgType</span> = "text"<span style="line-height: 1.8;">;

            </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">if</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$keyword</span>=="你好"<span style="line-height: 1.8;">){
                </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span> = "hello"<span style="line-height: 1.8;">;
            }</span><span style="line-height: 1.8; color: rgb(0, 0, 255);">elseif</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$keyword</span>=="苏州"<span style="line-height: 1.8;">){
                </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span> = "上有天堂,下有苏杭"<span style="line-height: 1.8;">;
            }</span><span style="line-height: 1.8; color: rgb(0, 0, 255);">else</span><span style="line-height: 1.8;">{
                </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span> = "感谢您关注【卓锦苏州】 微信号:zhuojinsz"<span style="line-height: 1.8;">;
            }
            </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$resultStr</span> = <span style="line-height: 1.8; color: rgb(0, 128, 128);">sprintf</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$textTpl</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$fromUsername</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$toUsername</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$time</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$msgType</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span><span style="line-height: 1.8;">);
            </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">echo</span> <span style="line-height: 1.8; color: rgb(128, 0, 128);">$resultStr</span><span style="line-height: 1.8;">;
      }</span><span style="line-height: 1.8; color: rgb(0, 0, 255);">else</span><span style="line-height: 1.8;">{
            </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">echo</span> "Input something..."<span style="line-height: 1.8;">;
      }
    }

    </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">public</span> <span style="line-height: 1.8; color: rgb(0, 0, 255);">function</span> handleEvent(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$object</span><span style="line-height: 1.8;">)
    {
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span> = ""<span style="line-height: 1.8;">;
      </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">switch</span> (<span style="line-height: 1.8; color: rgb(128, 0, 128);">$object</span>-&gt;<span style="line-height: 1.8;">Event)
      {
            </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">case</span> "subscribe":
                <span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span> = "感谢您关注【卓锦苏州】"."\n"."微信号:zhuojinsz"."\n"."卓越锦绣,名城苏州,我们为您提供苏州本地生活指南,苏州相关信息查询,做最好的苏州微信平台。"."\n"."目前平台功能如下:"."\n"."【1】 查天气,如输入:苏州天气"."\n"."【2】 查公交,如输入:苏州公交178"."\n"."【3】 翻译,如输入:翻译I love you"."\n"."【4】 苏州信息查询,如输入:苏州观前街"."\n"."更多内容,敬请期待..."<span style="line-height: 1.8;">;
                </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">break</span><span style="line-height: 1.8;">;
            </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">default</span> :
                <span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span> = "Unknow Event: ".<span style="line-height: 1.8; color: rgb(128, 0, 128);">$object</span>-&gt;<span style="line-height: 1.8;">Event;
                </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">break</span><span style="line-height: 1.8;">;
      }
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$resultStr</span> = <span style="line-height: 1.8; color: rgb(128, 0, 128);">$this</span>-&gt;responseText(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$object</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$contentStr</span><span style="line-height: 1.8;">);
      </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">return</span> <span style="line-height: 1.8; color: rgb(128, 0, 128);">$resultStr</span><span style="line-height: 1.8;">;
    }
   
    </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">public</span> <span style="line-height: 1.8; color: rgb(0, 0, 255);">function</span> responseText(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$object</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$content</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$flag</span>=0<span style="line-height: 1.8;">)
    {
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$textTpl</span> = "<span style="line-height: 1.8;">&lt;xml&gt;
                  &lt;ToUserName&gt;&lt;!]&gt;&lt;/ToUserName&gt;
                  &lt;FromUserName&gt;&lt;!]&gt;&lt;/FromUserName&gt;
                  &lt;CreateTime&gt;%s&lt;/CreateTime&gt;
                  &lt;MsgType&gt;&lt;!]&gt;&lt;/MsgType&gt;
                  &lt;Content&gt;&lt;!]&gt;&lt;/Content&gt;
                  &lt;FuncFlag&gt;%d&lt;/FuncFlag&gt;
                  &lt;/xml&gt;</span>"<span style="line-height: 1.8;">;
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$resultStr</span> = <span style="line-height: 1.8; color: rgb(0, 128, 128);">sprintf</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$textTpl</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$object</span>-&gt;FromUserName, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$object</span>-&gt;ToUserName, <span style="line-height: 1.8; color: rgb(0, 128, 128);">time</span>(), <span style="line-height: 1.8; color: rgb(128, 0, 128);">$content</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$flag</span><span style="line-height: 1.8;">);
      </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">return</span> <span style="line-height: 1.8; color: rgb(128, 0, 128);">$resultStr</span><span style="line-height: 1.8;">;
    }


    </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">private</span> <span style="line-height: 1.8; color: rgb(0, 0, 255);">function</span><span style="line-height: 1.8;"> checkSignature()
    {
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$signature</span> = <span style="line-height: 1.8; color: rgb(128, 0, 128);">$_GET</span>["signature"<span style="line-height: 1.8;">];
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$timestamp</span> = <span style="line-height: 1.8; color: rgb(128, 0, 128);">$_GET</span>["timestamp"<span style="line-height: 1.8;">];
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$nonce</span> = <span style="line-height: 1.8; color: rgb(128, 0, 128);">$_GET</span>["nonce"<span style="line-height: 1.8;">];   
               
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$token</span> =<span style="line-height: 1.8;"> TOKEN;
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$tmpArr</span> = <span style="line-height: 1.8; color: rgb(0, 0, 255);">array</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$token</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$timestamp</span>, <span style="line-height: 1.8; color: rgb(128, 0, 128);">$nonce</span><span style="line-height: 1.8;">);
      </span><span style="line-height: 1.8; color: rgb(0, 128, 128);">sort</span>(<span style="line-height: 1.8; color: rgb(128, 0, 128);">$tmpArr</span><span style="line-height: 1.8;">);
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$tmpStr</span> = <span style="line-height: 1.8; color: rgb(0, 128, 128);">implode</span>( <span style="line-height: 1.8; color: rgb(128, 0, 128);">$tmpArr</span><span style="line-height: 1.8;"> );
      </span><span style="line-height: 1.8; color: rgb(128, 0, 128);">$tmpStr</span> = <span style="line-height: 1.8; color: rgb(0, 128, 128);">sha1</span>( <span style="line-height: 1.8; color: rgb(128, 0, 128);">$tmpStr</span><span style="line-height: 1.8;"> );
      
      </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">if</span>( <span style="line-height: 1.8; color: rgb(128, 0, 128);">$tmpStr</span> == <span style="line-height: 1.8; color: rgb(128, 0, 128);">$signature</span><span style="line-height: 1.8;"> ){
            </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">return</span> <span style="line-height: 1.8; color: rgb(0, 0, 255);">true</span><span style="line-height: 1.8;">;
      }</span><span style="line-height: 1.8; color: rgb(0, 0, 255);">else</span><span style="line-height: 1.8;">{
            </span><span style="line-height: 1.8; color: rgb(0, 0, 255);">return</span> <span style="line-height: 1.8; color: rgb(0, 0, 255);">false</span><span style="line-height: 1.8;">;
      }
    }
}

</span>?&gt;</pre><div class="cnblogs_code_toolbar" style="margin-top: 5px;"><span class="cnblogs_code_copy" style="padding-right: 5px; line-height: 1.8;"><a title="复制代码" style="color: rgb(0, 0, 0); border: none !important;"><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="max-width: 900px;"></a></span></div></div><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;"><span style="line-height: 1.8; font-size: 16px;"><strong><span style="line-height: 1.5; color: rgb(128, 0, 0);">四、测试</span></strong></span></p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;"><span style="line-height: 1.5;"><img src="http://images.cnitblog.com/blog/370046/201307/03215850-a62d6464134b423283509d24f52ab0ba.png" alt="" style="border: 0px; max-width: 900px;"></span></p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;"><span style="line-height: 1.8; font-size: 16px;"><strong><span style="line-height: 1.5; color: rgb(128, 0, 0);">五、关注</span></strong></span></p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;">请关注&nbsp;<span style="line-height: 1.8;"><span style="line-height: 1.8; color: rgb(128, 0, 0);"><strong>卓锦苏州</strong></span>&nbsp;</span>微信公众帐号,<span style="line-height: 1.8; color: rgb(128, 0, 0);"><strong>卓锦苏州</strong></span>&nbsp;基于BAE 平台开发,针对于主流的微信功能进行开发测试。</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;">您可以关注&nbsp;<span style="line-height: 1.8; color: rgb(128, 0, 0);"><strong>卓锦苏州</strong></span>&nbsp;公众帐号进行功能测试,以及获取新的应用开发。</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;">1. 登录微信客户端,通讯录 -&gt; 添加朋友 -&gt;&nbsp;查找公众号 -&gt;&nbsp;<span style="line-height: 1.8; color: rgb(128, 0, 0);"><strong>zhuojinsz</strong></span>,查找并关注。</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;">2. 扫描二维码:</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;"><img src="http://images.cnitblog.com/blog/370046/201306/05140401-0b42e6b6ccef4686ae7507c82da3ed08.jpg" alt="" style="border: 0px; max-width: 900px;"></p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;">&nbsp;</p><hr style="color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;"><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;"><span style="line-height: 1.8; color: rgb(128, 0, 0);"><strong>David Camp</strong></span></p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; line-height: 25.2px;"><span style="line-height: 1.8; color: rgb(128, 0, 0);"><strong><strong><strong>我们永远相信,分享是一种美德 |&nbsp;</strong></strong>We Believe, Great People Share Knowledge...</strong></span></p></div>
页: [1]
查看完整版本: 微信公众平台开发(四) 简单回复功能开发