'未授权', 1 => '已授权', 2 => '无需授权', 3 => '停用', '重新授权' => '重新授权', ]; return $map[$value]; } public function getPlatList() { return ['妙选', '快团团']; } public function getPlatIdAttribute($value) { $map = $this->getPlatList(); return $map[$value]; } public function getRefreshTokenExpiresAtAttribute($value) { return $value ? date('Y-m-d H:i:s', $value) : ''; } public function ship() { return $this->hasOne(ShopShip::class, 'shop_id', 'id'); } }