Skip to content

cfw-rgb/server_limited

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

server_limited

Online server_limited API && 有货微信推送

https://console.online.net/en/order/server_limited

$array = $result[0];

[0] = XC DEALS 1701.1

[1] = XC DEALS 1701.2

[4] = MD DEALS 1701.1

以此类推。

http://sc.ftqq.com/3.version 绑定微信

http://sc.ftqq.com/?c=code 获取SCKEY

$count = count($array) - 1;
if(strstr($array[$count],'form method') {
	$url = 'http://sc.ftqq.com/YOUR_API_KEY.send?text='.urlencode($array[0].'上货了');
	file_get_contents($url);
}

YOUR_API_KEY 替换成你的SCKEY

crontab -e添加

* * * * * php /path/to/online.php

API:

--- online.php  2017-01-22 05:21:19.050717400 +0800
+++ api.php     2017-01-22 05:28:17.700662800 +0800
@@ -34,11 +34,4 @@
        if($i>0) $result = array_merge($result, $offer[$i]);
 }

-#echo json_encode($result[0])."\n";
-
-$array = $result[0];
-$count = count($array) - 1;
-if(strstr($array[$count],'form method') {
-       $url = 'http://sc.ftqq.com/YOUR_API_KEY.send?text='.urlencode($array[0].'上货了');
-       file_get_contents($url);
-}
\ No newline at end of file
+echo json_encode($result)."\n";
\ No newline at end of file

About

Online server_limited API & 微信推送

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%