...
|
...
|
@@ -429,6 +429,16 @@ class VolunteerController extends AdminBaseController |
|
|
$update['stage']='1';
|
|
|
$result=\db('volunteer')->where('id',$id)->update($update);
|
|
|
if ($result>0){
|
|
|
$date=date('Y-m-d H:i');
|
|
|
$volunteer=\db('volunteer')->where('id',$id)->find();
|
|
|
$openId=\db('third_party_user')->where('user_id',$volunteer['user_id'])->value('openid');
|
|
|
$data=[
|
|
|
'phrase1' => ['value' =>'审核通过'], //审核结果
|
|
|
'thing2'=>['value'=>'申请白求恩志愿者审核'], //活动名称
|
|
|
'thing4'=>['value'=>'审核通过'], //备注
|
|
|
'date7'=>['value'=>$date] //审核时间
|
|
|
];
|
|
|
$Info=sendSubMessage($data,$openId);
|
|
|
$this->success('编辑成功!');
|
|
|
}else{
|
|
|
$this->error('编辑失败');
|
...
|
...
|
|