Пример #1
0
 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
 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();
 }