1 Star 0 Fork 8

YoungGino/Cloud-Sms

forked from freelife/Cloud-Sms 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cron.php 560 Bytes
一键复制 编辑 原始数据 按行查看 历史
freelife 提交于 2014-10-29 15:01 . update
<?php
require dirname(__FILE__).'/init.php';
set_time_limit(0);
$num = $M->getOne("select * from cron");
$num = $num['num'];
$number = $M->getAll("select number from number limit {$num},5");
$count = $M->getOne("select count(*) from number");
foreach($number as $value){
file_get_contents('http://cloudsmsapi.sinaapp.com/index.php?number='.$value['number']);
}
if($count['count(*)'] - $num <= 5){
var_dump($M->query("update cron set num = 0 where id = 1"));
}else{
$num = $num + 5;
var_dump($M->query("update cron set num = " . $num . " where id = 1"));
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/younggino/Cloud-Sms.git
git@gitee.com:younggino/Cloud-Sms.git
younggino
Cloud-Sms
Cloud-Sms
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385