auto update

old
iotcat 4 years ago
parent f9a5db01da
commit 2f0b91c2df
  1. 1
      ushio/opt/exrate
  2. 19
      ushio/www/api/sms/index.php

@ -0,0 +1 @@
Subproject commit bc57e025dde3598c41c654b97a2ceedef37ed2a6

@ -2,4 +2,21 @@
include '../functions.php';
//yimian__sms("18118155257", 1, "原子弹", "阵亡","");
header('Access-Control-Allow-Origin:*');
$to = $_REQUEST['to'];
$template = $_REQUEST['template'];
$s0 = $_REQUEST['s0'];
$s1 = $_REQUEST['s1'];
$s2 = $_REQUEST['s2'];
$t = $_REQUEST['t'];
if(!isset($to)) die('Target Tel not Specified!!');
if(!isset($t) || $t < time() - 10) die('Illegal Visit!!!');
if(!isset($template)) $template = 1;
if(!isset($s0)) $s0 = "";
if(!isset($s1)) $s1 = "";
if(!isset($s2)) $s2 = "";
yimian__sms($to, $template, $s0, $s1, $s2);

Loading…
Cancel
Save