作者 sgj
1 个管道 的构建 通过 耗费 1 秒

添加最新版本的easywechat

... ... @@ -518,23 +518,15 @@ class ActivityController extends AdminBaseController
'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);
try{
$result= $notice->send($message);
}catch(Exception $e){
$e->getMessage();
}
return $result;
}
... ...