|
@@ -146,21 +146,46 @@ class Apply extends Model
|
|
|
/**
|
|
|
* 微信模板消息通知(申请认识)
|
|
|
*/
|
|
|
- public static function wxKnowMessage($uid,$nid,$time,$appeal,$url_type){
|
|
|
+ public static function wxKnowMessage($uid,$nid,$time){
|
|
|
$user_name = User::get(['id'=>$uid])['username'];
|
|
|
$user_info = User::get(['id'=>$nid]);
|
|
|
$data = [
|
|
|
- 'thing2'=>[
|
|
|
+ 'thing17'=>[
|
|
|
'value'=>$user_name
|
|
|
],
|
|
|
- 'time8'=>[
|
|
|
+ 'time5'=>[
|
|
|
'value'=>$time
|
|
|
],
|
|
|
- 'phrase10'=>[
|
|
|
+ 'thing9'=>[
|
|
|
+ 'value'=>'想认识一下你'
|
|
|
+ ],
|
|
|
+ ];
|
|
|
+ (new \app\api\controller\Common())->sendWechatMessage($user_info['open_id'],'rPRvrkJ7QYwGpANXf6sOU4YyrejhUh70ow7dSdCXxU8',$data,'http://'.$_SERVER['HTTP_HOST'].'/h5/#/pages/xiaoxi/look-me');
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 微信模板消息通知(头像,学历,工作审核通知)
|
|
|
+ */
|
|
|
+ public static function wxAuditMessage($uid,$nid,$time,$appeal_type){
|
|
|
+ $user_name = User::get(['id'=>$uid])['username'];
|
|
|
+ $user_info = User::get(['id'=>$nid]);
|
|
|
+ if($appeal_type == 1){ //通过
|
|
|
+ $appeal = '已通过申请啦';
|
|
|
+ }elseif ($appeal_type == 2){ //拒绝
|
|
|
+ $appeal = '暂时不合适';
|
|
|
+ }else{ //过期
|
|
|
+ $appeal = '已经过期啦';
|
|
|
+ }
|
|
|
+ $data = [
|
|
|
+ 'thing7'=>[
|
|
|
+ 'value'=>$user_name
|
|
|
+ ],
|
|
|
+ 'time4'=>[
|
|
|
+ 'value'=>$time
|
|
|
+ ],
|
|
|
+ 'thing3'=>[
|
|
|
'value'=>$appeal
|
|
|
],
|
|
|
];
|
|
|
- $url = $url_type == 1?'/h5/#/pages/xiaoxi/look-me':'/h5/#/pages/xiaoxi/like-me';
|
|
|
- (new \app\api\controller\Common())->sendWechatMessage($user_info['open_id'],'VJNwruW2tQp4bG0K1gg_-HJ4vaougj6fELLED2OYcrI',$data,'http://'.$_SERVER['HTTP_HOST'].$url);
|
|
|
+ (new \app\api\controller\Common())->sendWechatMessage($user_info['open_id'],'bNR9STIj3_z7PwuXLNAEjGELj31DerERhXixAJqf3to',$data,'http://'.$_SERVER['HTTP_HOST'].'/h5/#/pages/xiaoxi/my-shenqing');
|
|
|
}
|
|
|
}
|