@@ -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=''){
@@ -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){