微信开发查询双色球最新中奖号码

时间:2015-08-18 15:33:09   收藏:0   阅读:265
case "ssq":
                  $contentStr = $this->get_new_ssq_result_info();
                  $this->weixin_output($contentStr,$textTpl,$fromUsername,$toUsername,$time);
                  break;

 

1 private function get_new_ssq_result_info(){
2             $var="http://caipiao.163.com/award/ssq/";
3             $file_content = file_get_contents($var);
4 //            $file_content=$this->GetGB2312String($file_content);
5             preg_match_all("%<a href=\"/award/ssq/(.+?)\" time=\"(.+?)\" sale=\"(.+?)\" pool=\"(.+?)\" matchBall=\"(.+?)\" bonus=\"(.+?)\" >(.+?)</a>%s",$file_content,$temp);
6             $subject="双色球(第".$temp[7][0]."期)中奖号码为: ".$temp[5][0].","."\n";
7             $subject.="详情为:  (分别为:奖项,获奖人数,获奖金额) ".$temp[6][0]."";
8             return $subject;
9         }

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!