2024-09-19 11:32:39 +08:00
|
|
|
|
<?php
|
|
|
|
|
|
|
2024-12-19 19:20:27 +08:00
|
|
|
|
namespace common\modelsgii\oldDb;
|
2024-09-19 11:32:39 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* This is the model class for table "{{%callback}}".
|
|
|
|
|
|
*
|
|
|
|
|
|
* @property int $id
|
|
|
|
|
|
* @property string|null $content 回调内容
|
|
|
|
|
|
* @property string $type order下单回调,refund退款回调
|
|
|
|
|
|
* @property int $status 是否处理成功,1是成功
|
|
|
|
|
|
* @property string|null $message 失败原因
|
|
|
|
|
|
* @property int $created_at
|
|
|
|
|
|
* @property int $updated_at
|
|
|
|
|
|
*/
|
|
|
|
|
|
class Callback extends \common\core\BaseActiveRecord
|
|
|
|
|
|
{
|
|
|
|
|
|
/**
|
|
|
|
|
|
* {@inheritdoc}
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static function tableName()
|
|
|
|
|
|
{
|
|
|
|
|
|
return '{{%callback}}';
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* {@inheritdoc}
|
|
|
|
|
|
*/
|
|
|
|
|
|
public function rules()
|
|
|
|
|
|
{
|
|
|
|
|
|
return [
|
|
|
|
|
|
[['content', 'message'], 'string'],
|
|
|
|
|
|
[['status', 'created_at', 'updated_at'], 'integer'],
|
|
|
|
|
|
[['type'], 'string', 'max' => 50],
|
|
|
|
|
|
];
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* {@inheritdoc}
|
|
|
|
|
|
*/
|
|
|
|
|
|
public function attributeLabels()
|
|
|
|
|
|
{
|
|
|
|
|
|
return [
|
|
|
|
|
|
'id' => 'ID',
|
|
|
|
|
|
'content' => '回调内容',
|
|
|
|
|
|
'type' => 'order下单回调,refund退款回调',
|
|
|
|
|
|
'status' => '是否处理成功,1是成功',
|
|
|
|
|
|
'message' => '失败原因',
|
|
|
|
|
|
'created_at' => 'Created At',
|
|
|
|
|
|
'updated_at' => 'Updated At',
|
|
|
|
|
|
];
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|