|
@@ -167,29 +167,29 @@ class Activity extends Controller
|
|
|
if(($before_act['start_time'] != $data['start_time'] || $before_act['end_time'] != $data['end_time']) && $before_act['address'] == $data['address'] ) {
|
|
|
\app\common\model\Activity::activityChange($data['id'],$data['title'],['end_time'=>$data['end_time'],'start_time'=>$data['start_time'],'address'=>$data['address']]);
|
|
|
//变更通知
|
|
|
- $all_list = ActivityApplyItem::where(['act_id'=>$data['id'],'sh_status'=>1,'is_hx'=>0])->group('phone')->select();
|
|
|
-
|
|
|
- foreach ($all_list as $k => $v){
|
|
|
- UserMessage::sendUserMessage($v['user_id'],'activity',2,1,0,$v['act_id'],'活动时间变更',$v['act_id']);
|
|
|
- }
|
|
|
+// $all_list = ActivityApplyItem::where(['act_id'=>$data['id'],'sh_status'=>1,'is_hx'=>0])->group('phone')->select();
|
|
|
+//
|
|
|
+// foreach ($all_list as $k => $v){
|
|
|
+// UserMessage::sendUserMessage($v['user_id'],'activity',2,1,0,$v['act_id'],'活动时间变更',$v['act_id']);
|
|
|
+// }
|
|
|
}
|
|
|
// 活动地址变更
|
|
|
else if($before_act['start_time'] == $data['start_time'] && $before_act['end_time'] == $data['end_time'] && $before_act['address'] != $data['address']){
|
|
|
\app\common\model\Activity::activityChange($data['id'],$data['title'],['end_time'=>$data['end_time'],'start_time'=>$data['start_time'],'address'=>$data['address']]);
|
|
|
//变更通知
|
|
|
- $all_list = ActivityApplyItem::where(['act_id'=>$data['id'],'sh_status'=>1,'is_hx'=>0])->group('phone')->select();
|
|
|
- foreach ($all_list as $k => $v){
|
|
|
- UserMessage::sendUserMessage($v['user_id'],'activity',2,1,0,$v['act_id'],'活动地址变更',$v['act_id']);
|
|
|
- }
|
|
|
+// $all_list = ActivityApplyItem::where(['act_id'=>$data['id'],'sh_status'=>1,'is_hx'=>0])->group('phone')->select();
|
|
|
+// foreach ($all_list as $k => $v){
|
|
|
+// UserMessage::sendUserMessage($v['user_id'],'activity',2,1,0,$v['act_id'],'活动地址变更',$v['act_id']);
|
|
|
+// }
|
|
|
}
|
|
|
// 活动地址与时间变更
|
|
|
else if($before_act['start_time'] != $data['start_time'] || $before_act['end_time'] != $data['end_time'] || $before_act['address'] != $data['address'] ) {
|
|
|
\app\common\model\Activity::activityChange($data['id'],$data['title'],['end_time'=>$data['end_time'],'start_time'=>$data['start_time'],'address'=>$data['address']]);
|
|
|
//变更通知
|
|
|
- $all_list = ActivityApplyItem::where(['act_id'=>$data['id'],'sh_status'=>1,'is_hx'=>0])->group('phone')->select();
|
|
|
- foreach ($all_list as $k => $v){
|
|
|
- UserMessage::sendUserMessage($v['user_id'],'activity',2,1,0,$v['act_id'],'活动时间地址变更',$v['act_id']);
|
|
|
- }
|
|
|
+// $all_list = ActivityApplyItem::where(['act_id'=>$data['id'],'sh_status'=>1,'is_hx'=>0])->group('phone')->select();
|
|
|
+// foreach ($all_list as $k => $v){
|
|
|
+// UserMessage::sendUserMessage($v['user_id'],'activity',2,1,0,$v['act_id'],'活动时间地址变更',$v['act_id']);
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
}
|