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

添加最新版本的easywechat

... ... @@ -721,7 +721,6 @@ class MemberCenterController extends RestBaseController
}
$result=db('join')->where($map)->update($data);
if ($result>0){
$join=\db('join')->where($map)->find();
$activity=\db('activity')->where('id',$join['activity_id'])->find();
$userMap['user_id']=$join['user_id'];
... ... @@ -776,6 +775,23 @@ class MemberCenterController extends RestBaseController
}
protected function wxappNotice($message){
$appId = 'wx7a3bf4e0796c070a';
$secret = '755478f064e09a8301345e0c427c6cf3';
$config = [
'app_id' => $appId,
'secret' => $secret,
];
$wechat=new Application($config);
$notice=$wechat->mini_program->notice;
try{
$result= $notice->send($message);
}catch(Exception $e){
$e->getMessage();
}
return $result;
}
protected function switchStatus($status){
switch ($status){
... ...