{php} $__buy_mid = intval($maccms['mid'] ?? 0); $__buy_id = 0; $__buy_sid = 0; $__buy_nid = 0; $__buy_type = 1; if($__buy_mid === 1){ $__buy_id = intval($obj['vod_id'] ?? 0); $__buy_sid = intval($param['sid'] ?? 1); $__buy_nid = intval($param['nid'] ?? 1); $__buy_type = (($obj['player_info']['flag'] ?? 'play') === 'play') ? 4 : 5; } elseif($__buy_mid === 2){ $__buy_id = intval($obj['art_id'] ?? 0); $__buy_sid = intval($param['page'] ?? 1); $__buy_nid = 0; $__buy_type = 1; } elseif($__buy_mid === 12){ $__buy_id = intval($obj['manga_id'] ?? 0); $__buy_sid = intval($param['sid'] ?? 1); $__buy_nid = intval($param['nid'] ?? 1); $__buy_type = 1; } $__buy_enabled = $__buy_id > 0 ? 1 : 0; $__need_points = intval($popedom['points'] ?? 0); // 部分权限码（如游客 4001）未带 points：回退到 player_info / 影片积分字段 if ($__need_points <= 0 && $__buy_mid === 1) { $__need_points = intval($obj['player_info']['points'] ?? 0); } if ($__need_points <= 0 && $__buy_mid === 1) { $__flag = (string)($obj['player_info']['flag'] ?? 'play'); if (!empty($GLOBALS['config']['user']['vod_points_type']) && (string)$GLOBALS['config']['user']['vod_points_type'] === '1') { $__need_points = intval($obj['vod_points'] ?? 0); } else { $__col = ($__flag === 'down') ? 'vod_points_down' : 'vod_points_play'; $__need_points = intval($obj[$__col] ?? 0); } } $__show_confirm_buy = ($__buy_enabled === 1 && $__need_points > 0) ? 1 : 0; $__is_down = ($__buy_mid === 1 && (($obj['player_info']['flag'] ?? '') === 'down')); {/php}
{if condition="$__is_down"} {if condition="!empty($GLOBALS['config']['user']['vod_points_type']) && $GLOBALS['config']['user']['vod_points_type'] eq 1"}

整部下载需付费

支付一次，解锁本片全部下载地址

{else/}

本集下载需付费

购买后即可获取本集下载地址

{/if} {else/}

这部分内容需要会员才能观看哦～

开通会员即可畅享全部精彩内容，感谢您的支持

{/if}
{if condition="$__show_confirm_buy eq 1"}

可选选择金币单次购买（{$__need_points}金币）

{if condition="$__is_down"} {if condition="!empty($GLOBALS['config']['user']['vod_points_type']) && $GLOBALS['config']['user']['vod_points_type'] eq 1"}

或升级会员畅享整站下载权益

{else/}

或升级会员畅享下载权益

{/if} {else/}

或升级会员畅看全站内容

{/if} {else/} {if condition="$__is_down"}

本内容需会员下载，请升级会员后即可下载

{else/}

本内容需会员观看，请升级会员后即可观看

{/if} {/if}
{if condition="$__show_confirm_buy eq 1"} 确认购买 {/if} 升级会员