self::STATUS_ON],$where); return static::where($where)->get(); } // 获取默认地址 static public function getDefault($uid){ $where = array_merge(['status'=>self::STATUS_ON,'is_default'=>self::DEFAULT_ON,'uid'=>$uid]); return static::where($where)->first(); } // 获取单一地址 static public function getOne($where){ $where = array_merge(['status'=>self::STATUS_ON],$where); return static::where($where)->first(); } }