コード例 #1
0
ファイル: Sms.php プロジェクト: timelessmemory/ufsklp
 private function saveSmsLog($mobiles, $content, $response)
 {
     $log = new SmsLog();
     $log->mobiles = $mobiles;
     $log->content = $content;
     $log->response = $response;
     date_default_timezone_set(TIMEZONE);
     $log->createdDate = date('Y-m-d H:i:s', time());
     $log->save();
 }
コード例 #2
0
ファイル: SmsLog.php プロジェクト: jaybril/www.mimgpotea.com
 public function insertLog($mobile, $content, $checkCode, $type, $userId, $smsTemplateId, $orderId)
 {
     $model = new SmsLog();
     $model->mobile = $mobile;
     $model->content = $content;
     $model->checkCode = $checkCode;
     $model->userId = $userId;
     $model->type = $type;
     $model->smsTemplateId = $smsTemplateId;
     $model->orderId = $orderId;
     $model->time = date('Y-m-d H:i:s', time());
     if ($model->save() > 0) {
         return true;
     }
     return false;
 }
コード例 #3
0
 private function saveSmsLog($content)
 {
     $log = new SmsLog();
     $log->mobiles = "pushsms";
     $log->content = $content;
     $log->response = "pushsms";
     date_default_timezone_set(TIMEZONE);
     $log->createdDate = date('Y-m-d H:i:s', time());
     $log->save();
 }