Ken 1 vecka sedan
förälder
incheckning
b053a184cf
1 ändrade filer med 5 tillägg och 5 borttagningar
  1. 5 5
      app/Http/Controllers/api/Issue.php

+ 5 - 5
app/Http/Controllers/api/Issue.php

@@ -24,10 +24,10 @@ class Issue extends BaseController
     function yuanTou()
     {
         $data = file_get_contents("https://pc28ya.com/index.php?action=getMyOpensJson");
-        $data = json_decode($data,true);
+        $data = json_decode($data, true);
         $data = array_reverse($data['data']);
-        foreach ($data as &$item){
-            $item['keno'] = explode(',',$item['keno']);
+        foreach ($data as &$item) {
+            $item['keno'] = explode(',', $item['keno']);
             sort($item['keno']);
         }
         return $this->success($data);
@@ -303,9 +303,9 @@ class Issue extends BaseController
             ->where('id', '<=', 91)
             ->get();
 
-        $count =  Cao::whereIn('id', [1,2])->sum('val');
+        $count = Cao::whereIn('id', [1, 2])->sum('val');
         $data = [
-            'total' => $count,
+            'total' => intval($count),
             'list' => $list
         ];