|
@@ -90,13 +90,24 @@ class Apply extends Model
|
|
|
];
|
|
|
(new \app\api\controller\Common())->sendWechatMessage($user_info['open_id'],'KOWDFd4MsuxROCPCLNZF5k5LHzM_-o-WoEI2NpfQYx0',$data,'https://'.$_SERVER['HTTP_HOST'].'/h5/#/pages/xiaoxi/look-me');
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 微信模板消息通知(喜欢我,解锁照片,解锁资料)$url_type(1:解锁照片/资料,2:喜欢)
|
|
|
+ */
|
|
|
+ public static function wxUnlockMessage($uid,$nid,$time,$appeal,$url_type){
|
|
|
+ $user_name = User::get(['id'=>$uid])['username'];
|
|
|
+ $user_info = User::get(['id'=>$nid]);
|
|
|
+ $data = [
|
|
|
+ 'thing2'=>[
|
|
|
+ 'value'=>$user_name
|
|
|
+ ],
|
|
|
+ 'time8'=>[
|
|
|
+ 'value'=>$time
|
|
|
+ ],
|
|
|
+ 'phrase10'=>[
|
|
|
+ '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,'https://'.$_SERVER['HTTP_HOST'].$url);
|
|
|
+ }
|
|
|
}
|