You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
936 B

<?php
defined('BASE_PATH') OR exit('No direct script access allowed');
if (isset($modules)) {
foreach ($modules as $k => $v) {
if ($v['pay_code'] == 'epay') {
$tenpay = $modules[$k];
unset($modules[$k]);
array_unshift($modules, $tenpay);
}
}
foreach ($modules as $k => $v) {
if ($v['pay_code'] == 'tenpay') {
$tenpay = $modules[$k];
unset($modules[$k]);
array_unshift($modules, $tenpay);
}
}
foreach ($modules as $k => $v) {
if ($v['pay_code'] == 'syl') {
$tenpay = $modules[$k];
unset($modules[$k]);
array_unshift($modules, $tenpay);
}
}
foreach ($modules as $k => $v) {
if ($v['pay_code'] == 'alipay') {
$tenpay = $modules[$k];
unset($modules[$k]);
array_unshift($modules, $tenpay);
}
}
}