|
@@ -113,10 +113,16 @@ class Apply extends Model
|
|
|
/**
|
|
|
* 微信模板消息通知(申请通过、被拒、过期)
|
|
|
*/
|
|
|
- public static function wxApplyMessage($uid,$nid,$time,$appeal){
|
|
|
+ public static function wxApplyMessage($uid,$nid,$time,$appeal_type){
|
|
|
$user_name = User::get(['id'=>$uid])['username'];
|
|
|
$user_info = User::get(['id'=>$nid]);
|
|
|
- $data = [
|
|
|
+ if($appeal_type == 1){
|
|
|
+ $appeal = '你喜欢的TA已经通过你的申请啦,快去看看叭~';
|
|
|
+ }elseif ($appeal_type == 2){
|
|
|
+ $appeal = '你们之间的缘分可能还差那么一丢丢~不要灰心,继续加油哦';
|
|
|
+ }else{
|
|
|
+ $appeal = '你喜欢的TA可能太忙了~~可以看看其他小伙伴哦';
|
|
|
+ } $data = [
|
|
|
'thing7'=>[
|
|
|
'value'=>$user_name
|
|
|
],
|
|
@@ -127,7 +133,7 @@ class Apply extends Model
|
|
|
'value'=>$appeal
|
|
|
],
|
|
|
];
|
|
|
- (new \app\api\controller\Common())->sendWechatMessage($user_info['open_id'],'VJNwruW2tQp4bG0K1gg_-HJ4vaougj6fELLED2OYcrI',$data,'http://'.$_SERVER['HTTP_HOST'].'/h5/#/pages/xiaoxi/my-shenqing');
|
|
|
+ (new \app\api\controller\Common())->sendWechatMessage($user_info['open_id'],'bNR9STIj3_z7PwuXLNAEjGELj31DerERhXixAJqf3to',$data,'http://'.$_SERVER['HTTP_HOST'].'/h5/#/pages/xiaoxi/my-shenqing');
|
|
|
}
|
|
|
/**
|
|
|
* 微信模板消息通知(申请认识)
|