commit | author | age
|
19351a
|
1 |
<?php |
B |
2 |
|
|
3 |
/** |
|
4 |
* 支付插件排序文件 |
|
5 |
*/ |
|
6 |
|
|
7 |
if(isset($modules)) |
|
8 |
{ |
|
9 |
|
|
10 |
/* 将财付通提升至第二个显示 */ |
|
11 |
foreach ($modules as $k =>$v) |
|
12 |
{ |
|
13 |
if($v['pay_code'] == 'tenpay') |
|
14 |
{ |
|
15 |
$tenpay = $modules[$k]; |
|
16 |
unset($modules[$k]); |
|
17 |
array_unshift($modules, $tenpay); |
|
18 |
} |
|
19 |
} |
|
20 |
/* 将快钱直连银行显示在快钱之后 */ |
|
21 |
foreach ($modules as $k =>$v) |
|
22 |
{ |
|
23 |
if(strpos($v['pay_code'], 'kuaiqian')!== false) |
|
24 |
{ |
|
25 |
$tenpay = $modules[$k]; |
|
26 |
unset($modules[$k]); |
|
27 |
array_unshift($modules, $tenpay); |
|
28 |
} |
|
29 |
} |
|
30 |
|
|
31 |
/* 将快钱提升至第一个显示 */ |
|
32 |
foreach ($modules as $k =>$v) |
|
33 |
{ |
|
34 |
if($v['pay_code'] == 'kuaiqian') |
|
35 |
{ |
|
36 |
$tenpay = $modules[$k]; |
|
37 |
unset($modules[$k]); |
|
38 |
array_unshift($modules, $tenpay); |
|
39 |
} |
|
40 |
} |
|
41 |
|
|
42 |
} |
|
43 |
|
|
44 |
?> |