1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/8/18
- * Time: 上午10:46
- * 手机端和PC端楼盘相关共用部分
- */
- namespace common\fm;
- use Yii;
- use yii\base\BaseObject;
- use common\models\HttpRecord;
- class HttpRequestRecord extends BaseObject implements \yii\queue\JobInterface
- {
- public $equipment;
- public $referer;
- public $self_url;
- public $agent;
- public $ip;
- public function execute($queue)
- {
- $model = new \common\models\HttpRecord();
- // $server = new \common\api\HttpServer();
- $model->ip = $this->ip;
- $model->referer = $this->referer;
- $model->self_url = $this->self_url;
- $model->agent = $this->agent;
- $model->equipment = $this->equipment;
- $model->save();
- // $model->Add(['equipment'=>$this->equipment]);
- }
- }
|