zz 6 tahun lalu
induk
melakukan
529d947619

+ 1 - 1
app/Modules/Statistic/Models/AdVisitStat.php

@@ -19,7 +19,7 @@ use Illuminate\Database\Eloquent\Model;
  */
 class AdVisitStat extends Model
 {
-    //protected $table = 'ad_visit_stats';
+    protected $table = 'ad_visit_stats';
     protected $fillable = ['bid','uid','cid','type'];
 
     public function setCurrentTable($time=''){

+ 0 - 2
app/Modules/Statistic/Services/AdVisitStatService.php

@@ -20,14 +20,12 @@ class AdVisitStatService
         }else{
             $model->setCurrentTable($time);
         }
-        echo $model->getCurrentTable();
         try{
             $model->uid = $uid;
             $model->bid = $bid;
             $model->cid = $cid;
             $model->type = $type;
             $model->save();
-            //$model->create(compact('uid','bid','cid','type'));
         }catch (\Exception $e){
 
         }