流程:
循环查询redis队列里面的数据
然后post提交数据
反馈信息再写入另一个 redis list里面
cmd => php task.php
<?php
/**
* System Name: Maddong 1.0
* User: RATDATA
* Date: 2016/11/8 4:40
* © 2016 MadCTO
*/
class Net
{
function callInterfaceCommon($data_in = null)
{
$data_in=unserialize($data_in);
if(empty($data_in['id'])||empty($data_in['phone'])||empty($data_in['content']))
{
return array('state'=>false,'message'=>json_encode($data_in));exit;
}
$URL = "http://xxxxx/sms.aspx";//运营商URL
$data =
[
'account' => 'xx',
'password' => 'xxx',
'userid' => 'xxx',
'mobile' => $data_in['phone&#