|
|
@@ -39,7 +39,7 @@ class SportswqController extends Controller {
|
|
|
$dt->addColsFields('dsnum', array('templet' => '#dsnum', 'sort' => false, 'width' => 80));
|
|
|
// $dt->addColsFields('csnum', array('templet' => '#home_rate', 'sort' => false, 'width' => 80));
|
|
|
$dt->addColsFields('csnum', array('templet' => '#csnum', 'sort' => false, 'width' => 110));
|
|
|
- $dt->addColsFields('match_score', array('sort' => false, 'width' => 160));//'templet' => '#matchscore',
|
|
|
+ $dt->addColsFields('match_score', array('templet' => '#matchscore', 'sort' => false, 'width' => 160));
|
|
|
$dt->addColsFields('statusmatch', array('templet' => '#statusmatch', 'sort' => false, 'width' => 80));
|
|
|
$dt->addColsFields('operation', array('templet' => '#operation', 'sort' => false, 'width' => 300));
|
|
|
$dt->enableCheckBox();
|
|
|
@@ -95,7 +95,7 @@ class SportswqController extends Controller {
|
|
|
|
|
|
$newapp = new \App\Models\Stwqresult();
|
|
|
$data = $newapp->resultlist($list, $page, $where, $orwhere);
|
|
|
-
|
|
|
+
|
|
|
return \App\Lib\DataTable\DataTable::init()->toJson($data['data'], $data['total']);
|
|
|
}
|
|
|
|
|
|
@@ -284,8 +284,9 @@ class SportswqController extends Controller {
|
|
|
"first_inning_score"=>$data[1]['home'].':'.$data[1]['guest'],
|
|
|
"second_inning_score"=>$data[2]['home'].':'.$data[2]['guest'],
|
|
|
"third_inning_score"=>$data[3]['home'].':'.$data[3]['guest'],
|
|
|
- 'is_correct'=>1,
|
|
|
+ 'is_correct'=>1
|
|
|
];
|
|
|
+
|
|
|
\App\Models\Stwqresult::where('match_id', $match_id)->update($updatainfo);
|
|
|
|
|
|
$addnew = new \App\Models\Comendnotice();
|