摘要: //追加字段 protected $appends = ['state']; //赋值 public function getStateAttribute() { $status = $this->attributes['status']; if ($status == 1) { return '已 阅读全文
posted @ 2022-11-25 10:39 爱家家的卡卡 阅读(600) 评论(0) 推荐(0)