generated from liutk/owl-admin-base
main
parent
8f5047f572
commit
af84bc65cb
|
|
@ -341,9 +341,9 @@ class ActivityController extends AdminController
|
|||
public function finish(Activity $activity)
|
||||
{
|
||||
//若存在未公布结果的比赛场次,无法结算;
|
||||
if($activity->games()->where('state', '<>', 2)->exists()){
|
||||
return $this->response()->fail('该活动存在未公布结果的竞猜场次,请先公布结果');
|
||||
}
|
||||
// if($activity->games()->where('state', '<>', 2)->exists()){
|
||||
// return $this->response()->fail('该活动存在未公布结果的竞猜场次,请先公布结果');
|
||||
// }
|
||||
$res = $this->service->finishActivity($activity);
|
||||
return $this->autoResponse($res, '结算');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -212,9 +212,9 @@ tooltip: { trigger: 'axis' },
|
|||
xAxis: { type: 'category', boundaryGap: false, data: ['".implode("','", $days)."']},
|
||||
yAxis: { type: 'value' },
|
||||
grid:{ left: '7%', right:'3%', top: 60, bottom: 30, },
|
||||
legend: { data: ['访问量','注册量'] },
|
||||
legend: { data: ['新增访问量','注册量'] },
|
||||
series: [
|
||||
{ name: '访问量', data: {$dayCreateUser}, type: 'line', areaStyle: {}, smooth: true, symbol: 'none', },
|
||||
{ name: '新增访问量', data: {$dayCreateUser}, type: 'line', areaStyle: {}, smooth: true, symbol: 'none', },
|
||||
{ name:'注册量', data: {$dayBindUser}, type: 'line', areaStyle: {}, smooth: true, symbol: 'none', },
|
||||
]}");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue