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 }