12345678910111213141516171819202122232425 |
- <?php
- namespace common\fm;
- use Yii;
- use yii\base\BaseObject;
- use common\models\HttpRecord;
- class LiveHttpRecord extends BaseObject implements \yii\queue\JobInterface
- {
- public $vid;
- public $url;
- public $ip;
- public function execute($queue)
- {
- $model = new \common\models\LiveHttpRecord();
- $model->ip = $this->ip;
- $model->url = $this->url;
- $model->vid = $this->vid;
- $model->save();
- }
- }
|