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

修改培训演习记录人

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