作者 wangzhi

xiugai

... ... @@ -567,13 +567,15 @@ class Yuyue extends Api
$SunInfo = Db::name('sun')->field('s.*')->alias('s')->join('plane p', 'p.id=s.plane_id')->where('p.base_id', $Params['base_id'])->where($Map)->select();
if (!empty($SunInfo)) foreach ($SunInfo as $k => $v) {
if (($this->TimeCrcle($v['id']) > strtotime($Params['start_time'] . ':00') - 1) && ($this->TimeCrcle($v['id']) < strtotime($Params['end_time'] . ':00'))) {
/*发送短信*/
if ($Params['status'] == 1) {
$Bool = $this->Send($v['user_id'], $v['id']);
if ($Bool != false) {
if ($v['status'] == 3) {
/*发送短信*/
if ($Params['status'] == 1) {
// $Bool = $this->Send($v['user_id'], $v['id']);
// if ($Bool != false) {
$Mobile = Db::name('user')->where('id', $v['user_id'])->value('mobile');
if (!empty($Mobile) || $Mobile != '') {
$this->SendSms($Mobile, '【猎鹰飞行俱乐部】' . $Params['con'] . '空域情况:' . $Params['kong'],$Kill_plane_id,2);
$this->SendSms($Mobile, '【猎鹰飞行俱乐部】' . $Params['con'] . '空域情况:' . $Params['kong'], $Kill_plane_id, 2);
// }
}
}
}
... ...