/** * 短信提醒到BD人员 * @param string $message 提醒内容 */ function funcPutMsmMessageToBD($message) { //return; $phones = array('13260266954'); //国庆 /*if (in_array(date('d'), array('01', '02', '03', '04', '05', '06', '07'))) { $mod = new Application_Model_MailSmsEvent(); foreach ($phones as $phone) { $mod->sendSms($phone, $message, 'other'); } }*/ //当天是星期五、六、日 if (in_array(date('w'), array('0', '5', '6'))) { //周期五18点后才提醒 if (date('w') == '5' && date('H') < 18) { return; } if (date('w') != '0') { return; } $mod = new Application_Model_MailSmsEvent(); foreach ($phones as $phone) { $mod->sendSms($phone, $message, 'other'); } } }