...
|
...
|
@@ -887,36 +887,26 @@ class MemberCenterController extends RestBaseController |
|
|
if ($data['status']==1){
|
|
|
if (!empty($form_id)){
|
|
|
\db('form_id')->where('form_id',$form_id['form_id'])->update(['use_time'=>time()]);
|
|
|
$data['keyword1']= $volunteer['name'];
|
|
|
$data['keyword2']='活动审核';
|
|
|
$data['keyword3']='通过';
|
|
|
$data['keyword4']=$activity['activity_name'];
|
|
|
$message = [
|
|
|
'touser' => $openid,
|
|
|
'template_id' => '1FYkLuMK8LNKO4_nxJ_DuNQhgIjaaJQlAukgt92C-uw',
|
|
|
'page' => 'pages/index/index',
|
|
|
'form_id' => $form_id['value'],
|
|
|
'data' => $data,
|
|
|
'emphasis_keyword' =>$data['keyword3'],
|
|
|
$date=date('Y-m-d H:i');
|
|
|
$data=[
|
|
|
'phrase1' => ['value' =>"$volunteer[name]审核通过"], //审核结果
|
|
|
'thing2'=>['value'=>$activity['activity_name']], //活动名称
|
|
|
'thing4'=>['value'=>'通过'], //备注
|
|
|
'date7'=>['value'=>$date] //审核时间
|
|
|
];
|
|
|
$this->wxappNotice($message);
|
|
|
$Info=sendSubMessage($data,$openid);
|
|
|
}
|
|
|
}else{
|
|
|
if (!empty($form_id)){
|
|
|
\db('form_id')->where('form_id',$form_id['form_id'])->update(['use_time'=>time()]);
|
|
|
$data['keyword1']= $volunteer['name'];
|
|
|
$data['keyword2']='活动审核';
|
|
|
$data['keyword3']='未通过 原因:'.$refund_reason;
|
|
|
$data['keyword4']=$activity['activity_name'];
|
|
|
$message = [
|
|
|
'touser' => $openid,
|
|
|
'template_id' => '1FYkLuMK8LNKO4_nxJ_DuNQhgIjaaJQlAukgt92C-uw',
|
|
|
'page' => 'pages/index/index',
|
|
|
'form_id' => $form_id['value'],
|
|
|
'data' => $data,
|
|
|
'emphasis_keyword' =>$data['keyword3'],
|
|
|
$date=date('Y-m-d H:i');
|
|
|
$data=[
|
|
|
'phrase1' => ['value' =>"$volunteer[name]审核通过"], //审核结果
|
|
|
'thing2'=>['value'=>$activity['activity_name']], //活动名称
|
|
|
'thing4'=>['value'=>'通过'], //备注
|
|
|
'date7'=>['value'=>$date] //审核时间
|
|
|
];
|
|
|
$this->wxappNotice($message);
|
|
|
$Info=sendSubMessage($data,$openid);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|