作者 jinglong
1 个管道 的构建 通过 耗费 0 秒

修改培训演习记录人

@@ -2210,7 +2210,7 @@ class CommonController extends RestBaseController @@ -2210,7 +2210,7 @@ class CommonController extends RestBaseController
2210 return $registrations; 2210 return $registrations;
2211 } 2211 }
2212 2212
2213 - //根据id获取发起人uid 2213 + //根据id获取发起人uid,项目id
2214 public function getLaunchUid($table,$id){ 2214 public function getLaunchUid($table,$id){
2215 $users = Db::name($table) 2215 $users = Db::name($table)
2216 ->where('id',$id) 2216 ->where('id',$id)
@@ -201,6 +201,7 @@ class ExerciseController extends RestBaseController @@ -201,6 +201,7 @@ class ExerciseController extends RestBaseController
201 if($res){ 201 if($res){
202 //极光推送,推送发起甲方员工 202 //极光推送,推送发起甲方员工
203 $user_ids = $common->getLaunchUid('exercise',$id); 203 $user_ids = $common->getLaunchUid('exercise',$id);
  204 + $user_ids = explode(',',trim($user_ids['uid'],','));
204 $content = config('site.exercise_content_confirm_a'); 205 $content = config('site.exercise_content_confirm_a');
205 206
206 $registration_id = $common->getPushUsers($user_ids); 207 $registration_id = $common->getPushUsers($user_ids);
@@ -199,6 +199,7 @@ class TrainController extends RestBaseController @@ -199,6 +199,7 @@ class TrainController extends RestBaseController
199 if($res){ 199 if($res){
200 //极光推送,推送发起甲方员工 200 //极光推送,推送发起甲方员工
201 $user_ids = $common->getLaunchUid('train',$id); 201 $user_ids = $common->getLaunchUid('train',$id);
  202 + $user_ids = explode(',',trim($user_ids['uid'],','));
202 $content = config('site.train_content_confirm_a'); 203 $content = config('site.train_content_confirm_a');
203 204
204 $registration_id = $common->getPushUsers($user_ids); 205 $registration_id = $common->getPushUsers($user_ids);