'待确认', 1 => '已确认', 2 => '失败', 3 => '已忽略', ]; const TYPE_AUTO = 1; // 自动 const TYPE_HAND = 2; // 手动 public function member() { return $this->belongsTo(User::class, 'member_id', 'member_id') ->select(['id', 'member_id', 'username', 'first_name', 'status']); } protected function getAmountAttribute($value) { return floatval($value); } protected function getImageAttribute($value) { return Util::ensureUrl($value); } }