【虚拟产品货源渠道】PHP星座运势接口API源码

源码介绍

PHP星座运势接口API源码 ,座运接口是势接对接的魅族日历 ,不保证能长期使用,源码虚拟产品货源渠道可能调用的座运人多了官方就改规则了。请求示例 域名/xingzuo.php?势接彩虹云商城网站msg=天秤座

返回示例

【虚拟产品货源渠道】PHP星座运势接口API源码

发卡网平台");} $name=str_replace(座,座运,$name); $jk=Array( "白羊"=>"1", "金牛"=>"2", "双子"=>"3", "巨蟹"=>"4", "狮子"=>"5", "处女"=>"6", "天秤"=>"7", "天蝎"=>"8", "射手"=>"9", "摩羯"=>"10", "水瓶"=>"11", "双鱼"=>"12"); $l=$jk[$name]; if($l==""){ exit("不存在此类型  ,请查证后重试。势接");} $z=file_get_contents("http://cal.meizu.com/android/unauth/horoscope/gethoroscope.do?源码type=".$l."&date=".date("Y-m-d")."&searchType=0"); $z=myTrim($z); $p=preg_match_all(/{"contentAll":"(.*?)","contentCareer":"(.*?)","contentFortune":"(.*?)","contentHealth":"(.*?)","contentLove":"(.*?)","contentTravel":"(.*?)","date":(.*?),"direction":"(.*?)","enemies":"(.*?)","friends":"(.*?)","horoscopeType":(.*?),"id":(.*?),"lucklyColor":"(.*?)","lucklyTime":"(.*?)","mark":(.*?),"numbers":(.*?),"pointAll":(.*?),"pointCareer":(.*?),"pointFortune":(.*?),"pointHealth":(.*?),"pointLove":(.*?),"pointTravel":(.*?),"shorts":"(.*?)"}/,$z,$z); if($p==0){exit("抱歉,获取出错 。座运");} $zt=$z[1][0];//整体运势 $sy=$z[2][0];//事业运势 $cf=$z[3][0];//财富运势 $aq=$z[5][0];//爱情运势 $fw=$z[8][0];//贵人方位 $py=$z[10][0];//贵人星座 $ys=$z[13][0];//幸运颜色 $sz=$z[16][0];//幸运数字 $ts=$z[23][0];//提示 echo "星座 :".$name."".$hh.""; echo "贵人方位:".$fw."".$hh.""; echo "贵人星座 :".$py."".$hh.""; echo "幸运数字:".$sz."".$hh.""; echo "幸运颜色:".$ys."".$hh.""; echo "爱情运势 :".$aq."".$hh.""; echo "财富运势:".$cf."".$hh.""; echo "事业运势 :".$sy."".$hh.""; echo "整体运势:".$zt."".$hh.""; echo "提示:".$ts.""; function myTrim($str) { $search = array(" ",势接" ","\n","\r","\t"); $replace = array("","","","",""); return str_replace($search, $replace, $str); } ?>