| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- namespace addons\QiShangTong\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_qi_shang_tong_error".
- *
- * @property int $id ID
- * @property int $mall_id 商城ID
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- * @property array|null $content 最后一次更新数据
- * @property array|null $post 请求数据
- * @property string $route 路由
- */
- class QiShangTongError extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_qi_shang_tong_error';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'created_at', 'updated_at'], 'integer'],
- [['content', 'post'], 'safe'],
- [['route'], 'string', 'max' => 1000],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'content' => 'Content',
- 'post' => 'Post',
- 'route' => 'Route',
- ];
- }
- public static function setData(array $params)
- {
- $model = new self();
- $model->loadDefaultValues();
- if (!$model->load($params, '') || !$model->save()) {
- Yii::error($model->getErrorMessage() . " == " . __METHOD__);
- }
- }
- }
|