|
|
@@ -0,0 +1,32 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace App\Sports\Controller;
|
|
|
+
|
|
|
+use BaseController\Controller;
|
|
|
+use Biz\Match\GetmatchData;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+class Css extends Controller {
|
|
|
+
|
|
|
+ public function index(){
|
|
|
+ $s = $_REQUEST['data'];
|
|
|
+ $arr = [];
|
|
|
+ if(strstr($s,',')){
|
|
|
+ $arr1 = explode(",", $s);
|
|
|
+ if(!empty($arr1)){
|
|
|
+ foreach($arr1 as $k=>$v){
|
|
|
+ $arr[]= (int)$v*100;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }else{
|
|
|
+ for($i=0;$i<=$s;$i++){
|
|
|
+ $arr[] = $i;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $data['num'] = count($arr);
|
|
|
+
|
|
|
+ Render($data, '1', lang('Tips','Sports')->get('success'));
|
|
|
+ }
|
|
|
+}
|