示例#1
0
                             echo $resultStr_text;
                             //输出结果
                             exit;
                         } else {
                             if (strstr($keyword, "每周读片")) {
                                 //获取积分的方法
                                 $c = new MeiZhouYiDa();
                                 $contentStr = $c->responseMsg($fromUsername, $keyword) . $hint_str;
                                 $resultStr_text = sprintf($textTpl, $fromUsername, $toUsername, $time, "text", $contentStr);
                                 echo $resultStr_text;
                                 //输出结果
                                 exit;
                             } else {
                                 if (!empty($keyword)) {
                                     $f = new Reply();
                                     $contentStr = $f->responseMsg($keyword);
                                     //返回消息内容
                                     $resultStr_text = sprintf($textTpl, $fromUsername, $toUsername, $time, "text", $contentStr);
                                     echo $resultStr_text;
                                     //输出结果
                                 } else {
                                     exit;
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }