...
|
...
|
@@ -463,13 +463,30 @@ class VolunteerController extends AdminBaseController |
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 申请不通过
|
|
|
* @throws \think\Exception
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
* @throws \think\exception\PDOException
|
|
|
*/
|
|
|
public function unpass(){
|
|
|
$id=input('id');
|
|
|
$update['status']='3';
|
|
|
$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('编辑失败');
|
...
|
...
|
|