hasOne('app\common\model\user\User', 'id', 'user_id'); } /** * @Notes: 分销会员申请状态 * @param bool $status * @return array|mixed|string */ public static function getApplyStatus($status = true) { $desc = [ self::STATUS_WAIT_AUDIT => '待审核', self::STATUS_AUDIT_SUCCESS => '审核通过', self::STATUS_AUDIT_ERROR => '审核拒绝', ]; if ($status === true) { return $desc; } return $desc[$status] ?? '未知'; } }