Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

wwng2333/server_limited

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 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 绑定微信

登入:用GitHub账号登入网站,就能获得一个SCKEY(在「发送消息」页面) 绑定:点击「微信推送」,扫码关注同时即可完成绑定

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

function sc_send($text, $desp = '', $key = '') {

$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