LiveHttprecord.php 451 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace common\fm;
  3. use Yii;
  4. use yii\base\BaseObject;
  5. use common\models\HttpRecord;
  6. class LiveHttpRecord extends BaseObject implements \yii\queue\JobInterface
  7. {
  8. public $vid;
  9. public $url;
  10. public $ip;
  11. public function execute($queue)
  12. {
  13. $model = new \common\models\LiveHttpRecord();
  14. $model->ip = $this->ip;
  15. $model->url = $this->url;
  16. $model->vid = $this->vid;
  17. $model->save();
  18. }
  19. }