master
tping 4 years ago
parent f2094d4298
commit 0acc14d95c

@ -2039,15 +2039,6 @@ function get_payment_config($way=1, $game=0, $user_id=0) {
} }
} }
if (!$find_rule) {
foreach ($payment_rule as $v) {
if ($v['game_type_id'] == 0 && $v['game_id'] == 0 && $v['company_id'] == 0 && $v['company_belong'] == $company['company_belong']) {
$rule = $v;
$find_rule = true;
break;
}
}
}
if ($find_rule) { if ($find_rule) {
$merchant_id = $rule['alipay_merchant_id']; $merchant_id = $rule['alipay_merchant_id'];
@ -2116,7 +2107,7 @@ function get_payment_config($way=1, $game=0, $user_id=0) {
if (!$find_rule) { if (!$find_rule) {
foreach ($payment_rule as $v) { foreach ($payment_rule as $v) {
if ($v['company_id'] == 0 && $v['company_belong'] == $company['company_belong'] && $v['game_id'] == 0 && $game['game_type_id'] == 0) { if ($v['company_id'] == 0 && $v['company_belong'] == $company['company_belong'] && $v['game_id'] == 0 && $v['game_type_id'] == 0) {
$rule = $v; $rule = $v;
$find_rule = true; $find_rule = true;
// echo '5'; // echo '5';
@ -2128,7 +2119,7 @@ function get_payment_config($way=1, $game=0, $user_id=0) {
// 5 游戏 // 5 游戏
if (!$find_rule) { if (!$find_rule) {
foreach ($payment_rule as $v) { foreach ($payment_rule as $v) {
if ($v['company_id'] == 0 && $v['company_belong'] == -1 && $v['game_id'] == $baseGameId && $game['game_type_id'] == 0) { if ($v['company_id'] == 0 && $v['company_belong'] == -1 && $v['game_id'] == $baseGameId && $v['game_type_id'] == 0) {
$rule = $v; $rule = $v;
$find_rule = true; $find_rule = true;
// echo '6'; // echo '6';

Loading…
Cancel
Save