作者 金洪杰

签名

@@ -383,6 +383,7 @@ class Ajax extends TeacherBase @@ -383,6 +383,7 @@ class Ajax extends TeacherBase
383 $log['memo'] = $opinion; 383 $log['memo'] = $opinion;
384 Db::table("fa_register_log")->insert($log); 384 Db::table("fa_register_log")->insert($log);
385 $open_id = Db::table('fa_user')->where('id',$detail['user_id'])->value('open_id'); 385 $open_id = Db::table('fa_user')->where('id',$detail['user_id'])->value('open_id');
  386 + if ($open_id){
386 $config = Config::get('officialAccount'); 387 $config = Config::get('officialAccount');
387 $app = Factory::officialAccount($config); 388 $app = Factory::officialAccount($config);
388 $app->template_message->send([ 389 $app->template_message->send([
@@ -398,6 +399,8 @@ class Ajax extends TeacherBase @@ -398,6 +399,8 @@ class Ajax extends TeacherBase
398 'remark' => array('value' => '【您报名参加的' . $detail['project_name'] . '】被' . $msg, 'color' => ''), 399 'remark' => array('value' => '【您报名参加的' . $detail['project_name'] . '】被' . $msg, 'color' => ''),
399 ), 400 ),
400 ]); 401 ]);
  402 + }
  403 +
401 404
402 $this->success('操作成功',$file_url); 405 $this->success('操作成功',$file_url);
403 } 406 }