<?php
namespace app\workerapi\logic;


use app\adminapi\logic\user\UserLogic;
use app\common\model\property\PropertyHead;
use app\common\logic\BaseLogic;
use app\common\model\user\User;
use app\common\service\wechat\WeChatMnpService;
use Exception;
use think\facade\Db;
use think\facade\Log;


/**
 * PropertyHead逻辑
 * Class PropertyHeadLogic
 * @package app\adminapi\logic
 */
class PropertyHeadLogic extends BaseLogic
{


    /**
     * @notes 获取详情
     * @param $params
     * @return array
     * @author likeadmin
     * @date 2024/09/19 10:48
     */
    public static function detail($params): array
    {
        return PropertyHead::findOrEmpty($params['id'])->append(['city_text'])->toArray();
    }
}