...
|
...
|
@@ -156,7 +156,7 @@ class Bind extends Api |
|
|
if (empty($unique) && empty($items_id)) {
|
|
|
$this->error('参数错误', ['status' => 2]);
|
|
|
}
|
|
|
$study = db('study')->where('unique', $unique)->field('id,grade,name,sno,team_id,earn_score')->find();
|
|
|
$study = db('study')->where('unique', $unique)->field('id,grade_id,name,sno,team_id,earn_score')->find();
|
|
|
$item = db('item')->where('id', $items_id)->field('score,title,campus_id')->find();
|
|
|
$team = \db('team')->where('id', $study['team_id'])->field('title,score')->find();
|
|
|
$sum1 = $team['score'] + $item['score']; //合计战队总分
|
...
|
...
|
|