|
|
@@ -1350,7 +1350,28 @@ class CommonFunction {
|
|
|
strtoupper(dechex(date('m'))).date('d').
|
|
|
substr(time(),-5).substr(microtime(),2,5).sprintf('d',rand(0,99));
|
|
|
return $order_sn;
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+ //根据球类追加限定玩法
|
|
|
+ function getOddsPcode($game_code = 'zq'){
|
|
|
+
|
|
|
+ $p_code = [];
|
|
|
+
|
|
|
+ if($game_code == 'zq'){
|
|
|
+ $p_code = ['C','B','TG','CB','TB','GS','CO','TS'];
|
|
|
+ }
|
|
|
+ if($game_code == 'lq'){
|
|
|
+ $p_code = ['LN','C','TN','TS','TB','CO'];
|
|
|
+ }
|
|
|
+ if($game_code == 'wq'){
|
|
|
+ $p_code = ['LB','TN','TS','B','LD','C'];
|
|
|
+ }
|
|
|
+ if($game_code == 'bq'){
|
|
|
+ $p_code = ['CO','C','TN','TS'];
|
|
|
+ }
|
|
|
+
|
|
|
+ return $p_code;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
?>
|