|
...
|
...
|
@@ -383,21 +383,24 @@ class Ajax extends TeacherBase |
|
|
|
$log['memo'] = $opinion;
|
|
|
|
Db::table("fa_register_log")->insert($log);
|
|
|
|
$open_id = Db::table('fa_user')->where('id',$detail['user_id'])->value('open_id');
|
|
|
|
$config = Config::get('officialAccount');
|
|
|
|
$app = Factory::officialAccount($config);
|
|
|
|
$app->template_message->send([
|
|
|
|
'touser' => $open_id,
|
|
|
|
'template_id' => 'QUWHawyGohboStMgzZ4B4vQbqeFGWEnd-6MPh7jM8QQ',
|
|
|
|
'data' => array(
|
|
|
|
'first' => array('value' => "项目审核结果通知", 'color' => ''),
|
|
|
|
'keyword1' => array('value' => $project_type_name, 'color' => ''),
|
|
|
|
'keyword2' => array('value' => $detail['project_name'], 'color' => ''),
|
|
|
|
'keyword3' => array('value' => $msg, 'color' => ''),
|
|
|
|
'keyword4' => array('value' => $teacher_name, 'color' => ''),
|
|
|
|
'keyword5' => array('value' => $opinion, 'color' => ''),
|
|
|
|
'remark' => array('value' => '【您报名参加的' . $detail['project_name'] . '】被' . $msg, 'color' => ''),
|
|
|
|
),
|
|
|
|
]);
|
|
|
|
if ($open_id){
|
|
|
|
$config = Config::get('officialAccount');
|
|
|
|
$app = Factory::officialAccount($config);
|
|
|
|
$app->template_message->send([
|
|
|
|
'touser' => $open_id,
|
|
|
|
'template_id' => 'QUWHawyGohboStMgzZ4B4vQbqeFGWEnd-6MPh7jM8QQ',
|
|
|
|
'data' => array(
|
|
|
|
'first' => array('value' => "项目审核结果通知", 'color' => ''),
|
|
|
|
'keyword1' => array('value' => $project_type_name, 'color' => ''),
|
|
|
|
'keyword2' => array('value' => $detail['project_name'], 'color' => ''),
|
|
|
|
'keyword3' => array('value' => $msg, 'color' => ''),
|
|
|
|
'keyword4' => array('value' => $teacher_name, 'color' => ''),
|
|
|
|
'keyword5' => array('value' => $opinion, 'color' => ''),
|
|
|
|
'remark' => array('value' => '【您报名参加的' . $detail['project_name'] . '】被' . $msg, 'color' => ''),
|
|
|
|
),
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->success('操作成功',$file_url);
|
|
|
|
}
|
...
|
...
|
|