...
|
...
|
@@ -44,8 +44,15 @@ class ActivityController extends AdminBaseController |
|
|
->order('create_time desc')
|
|
|
->paginate(10);
|
|
|
$data->appends($param);
|
|
|
$list=$data->items();
|
|
|
foreach ($list as $k=>$v){
|
|
|
$join_map['status']=['in','1,3'];
|
|
|
$join_map['activity_id']=$v['id'];
|
|
|
$join_map['delete_time']=0;
|
|
|
$list[$k]['count']=\db('join')->where($join_map)->count('*');
|
|
|
}
|
|
|
$this->assign([
|
|
|
'data'=>$data,
|
|
|
'data'=>$list,
|
|
|
'page'=>$data->render(),
|
|
|
]);
|
|
|
$this->assign('start_time', isset($param['start_time']) ? $param['start_time'] : '');
|
...
|
...
|
@@ -53,6 +60,8 @@ class ActivityController extends AdminBaseController |
|
|
$this->assign('keyword', isset($param['keyword']) ? $param['keyword'] : '');
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
|
|
|
public function news(){
|
|
|
$where=[];
|
|
|
$param = $this->request->param();
|
...
|
...
|
@@ -442,7 +451,7 @@ class ActivityController extends AdminBaseController |
|
|
|
|
|
public function join(){
|
|
|
$map['j.activity_id']=input('id');
|
|
|
$map['j.delete_time']=0;
|
|
|
//$map['j.delete_time']=0;
|
|
|
$join=\db('join')
|
|
|
->field('j.*,v.name,v.photo')
|
|
|
->alias('j')
|
...
|
...
|
@@ -523,7 +532,7 @@ class ActivityController extends AdminBaseController |
|
|
$notice=$wechat->mini_program->notice;
|
|
|
$result= $notice->send($message);
|
|
|
}catch(Exception $e){
|
|
|
$e->getMessage();
|
|
|
//$e->getMessage();
|
|
|
}
|
|
|
return $result;
|
|
|
}
|
...
|
...
|
@@ -752,6 +761,7 @@ class ActivityController extends AdminBaseController |
|
|
$time=input('time');
|
|
|
$map['activity_id']=$id;
|
|
|
$map['status']=['in','1,3'];
|
|
|
$map['delete_time']=0;
|
|
|
$join=\db('join')->where($map)->select();
|
|
|
foreach ($join as $k=>$v){
|
|
|
/*是否已经设置过时间*/
|
...
|
...
|
|