| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- /**
- * @property integer $id (主键)
- * @property integer $agent_id
- * @property integer $shop_id
- * @property mixed $order_sn
- * @property integer $time 续费时长-天
- * @property integer $money 金额
- * @property integer $status 0待付款1已支付
- * @property mixed $pay_at 支付时间
- * @property string $transaction_id 交易编号wx
- * @property mixed $create_at
- */
- class SaasComboLog extends Model
- {
- /**
- * The connection name for the model.
- *
- * @var string|null
- */
- protected $connection = 'mysql';
-
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected string $table = "saas_combo_log";
-
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected string $primaryKey = "id";
-
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public bool $timestamps = false;
- public function getMoneyAttr($val): string
- {
- return format_money($val/100,2);
- }
- }
|