...
|
...
|
@@ -477,7 +477,8 @@ class ActivityController extends AdminBaseController |
|
|
$this->error('参数错误!');
|
|
|
}
|
|
|
$update['status']='1';
|
|
|
$result=\db('join')->where($map)->update($update);
|
|
|
// $result=\db('join')->where($map)->update($update);
|
|
|
$result=1;
|
|
|
if ($result>0){
|
|
|
$join=\db('join')->where($map)->find();
|
|
|
$userMap['user_id']=$join['user_id'];
|
...
|
...
|
@@ -500,15 +501,41 @@ class ActivityController extends AdminBaseController |
|
|
'data' => $data,
|
|
|
'emphasis_keyword' =>$data['keyword3']='状态',
|
|
|
];
|
|
|
dump(wxappNotice($message));
|
|
|
|
|
|
|
|
|
dump($this->wxappNotice($message));
|
|
|
$this->success('操作成功!');
|
|
|
}else{
|
|
|
$this->error('操作失败!');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
protected function wxappNotice($message){
|
|
|
|
|
|
$appId = 'wx7a3bf4e0796c070a';
|
|
|
$secret = '755478f064e09a8301345e0c427c6cf3';
|
|
|
$config = [
|
|
|
'app_id' => $appId,
|
|
|
'secret' => $secret,
|
|
|
];
|
|
|
dump($config);
|
|
|
$wechat=new Application($config);
|
|
|
$notice=$wechat->mini_program->notice;
|
|
|
/* if (empty($message)){
|
|
|
$data['keyword1']='姓名';
|
|
|
$data['keyword2']='类型';
|
|
|
$data['keyword3']='状态';
|
|
|
$data['keyword4']='申请项目';
|
|
|
$message = [
|
|
|
'touser' => $openid,
|
|
|
'template_id' => '1FYkLuMK8LNKO4_nxJ_DuNQhgIjaaJQlAukgt92C-uw',
|
|
|
'page' => 'pages/index/index',
|
|
|
'form_id' => $form_id,
|
|
|
'data' => $data,
|
|
|
'emphasis_keyword' =>$data['keyword3']='状态',
|
|
|
];
|
|
|
}*/
|
|
|
$result= $notice->send($message);
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 审核不通过
|
...
|
...
|
|