|
@@ -186,6 +186,12 @@ class push_helper
|
|
|
$push_param['extra']['image'] = self::admin_avatar();
|
|
|
|
|
|
self::push($user,$push_param,Sms::tpl_reg_user_bonus,['amount' => $money],$fQueue);
|
|
|
+
|
|
|
+ $minfo = new member_info($user);
|
|
|
+ $from = ['nickname' => $minfo->nickname(),'avatar' => $minfo->avatar(),'userid' => $minfo->member_id()];
|
|
|
+ $shema = schema_helper::bonus_detail($type_sn);
|
|
|
+ $content = ['type' => 'register_bonus','from' => $from,'schema' => $shema,'note' => "收到新人红包¥{$money}"];
|
|
|
+ room\factory_client::instance()->notice_users([$user],room\proto_type::push_notify,$content,$text);
|
|
|
}
|
|
|
|
|
|
public static function money_rate_desc($money,$rate)
|
|
@@ -323,7 +329,6 @@ class push_helper
|
|
|
$push_param['extra']['url'] = schema_helper::goods($goods_info['goods_id']);
|
|
|
$push_param['extra']['image'] = $goods_info['goods_image'];
|
|
|
QueueClient::push('upushSendMsg',$push_param);
|
|
|
- //self::push($inviter,$push_param);
|
|
|
}
|
|
|
|
|
|
private static function buygoods_invitee_text(member_info $user, $goods_name)
|
|
@@ -368,7 +373,6 @@ class push_helper
|
|
|
$push_param['extra']['image'] = self::admin_avatar();
|
|
|
|
|
|
QueueClient::push('upushSendMsg',$push_param);
|
|
|
- //self::push($user,$push_param);
|
|
|
}
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -389,7 +393,12 @@ class push_helper
|
|
|
$push_param['extra']['url'] = schema_helper::bonus_detail($type_sn);
|
|
|
$push_param['extra']['image'] = self::admin_avatar();
|
|
|
QueueClient::push('upushSendMsg',$push_param);
|
|
|
- //self::push($user,$push_param);
|
|
|
+
|
|
|
+ $minfo = new member_info($user);
|
|
|
+ $from = ['nickname' => $minfo->nickname(),'avatar' => $minfo->avatar(),'userid' => $minfo->member_id()];
|
|
|
+ $shema = schema_helper::bonus_detail($type_sn);
|
|
|
+ $content = ['type' => 'order_bonus','from' => $from,'schema' => $shema,'note' => "收到购物成功红包¥{$money}"];
|
|
|
+ room\factory_client::instance()->notice_users([$user],room\proto_type::push_notify,$content,$text);
|
|
|
}
|
|
|
|
|
|
public static function user_order_complete_random($user,$num,$type_sn)
|
|
@@ -409,7 +418,12 @@ class push_helper
|
|
|
$push_param['extra']['image'] = self::admin_avatar();
|
|
|
|
|
|
QueueClient::push('upushSendMsg',$push_param);
|
|
|
- //self::push($user,$push_param);
|
|
|
+
|
|
|
+ $minfo = new member_info($user);
|
|
|
+ $from = ['nickname' => $minfo->nickname(),'avatar' => $minfo->avatar(),'userid' => $minfo->member_id()];
|
|
|
+ $shema = schema_helper::bonus_detail($type_sn);
|
|
|
+ $content = ['type' => 'order_bonus','from' => $from,'schema' => $shema,'note' => "收到{$num}购物分享红包"];
|
|
|
+ room\factory_client::instance()->notice_users([$user],room\proto_type::push_notify,$content,$text);
|
|
|
}
|
|
|
|
|
|
private static function inviter_order_complete_text(member_info $invitee, $level, $money, $rate)
|
|
@@ -506,6 +520,12 @@ class push_helper
|
|
|
$push_param['extra']['image'] = self::admin_avatar();
|
|
|
|
|
|
QueueClient::push('upushSendMsg',$push_param);
|
|
|
+
|
|
|
+ $minfo = new member_info($member_id);
|
|
|
+ $from = ['nickname' => $minfo->nickname(),'avatar' => $minfo->avatar(),'userid' => $minfo->member_id()];
|
|
|
+ $shema = schema_helper::bonus_detail($type_sn);
|
|
|
+ $content = ['type' => 'order_bonus','from' => $from,'schema' => $shema,'note' => "收到购物退款红包¥{$amount}"];
|
|
|
+ room\factory_client::instance()->notice_users([$member_id],room\proto_type::push_notify,$content,$text);
|
|
|
}
|
|
|
|
|
|
public static function order_evaluate_bonus($user, $money,$rate,$type_sn)
|
|
@@ -525,6 +545,12 @@ class push_helper
|
|
|
$push_param['extra']['image'] = self::admin_avatar();
|
|
|
|
|
|
QueueClient::push('upushSendMsg',$push_param);
|
|
|
+
|
|
|
+ $minfo = new member_info($user);
|
|
|
+ $from = ['nickname' => $minfo->nickname(),'avatar' => $minfo->avatar(),'userid' => $minfo->member_id()];
|
|
|
+ $shema = schema_helper::bonus_detail($type_sn);
|
|
|
+ $content = ['type' => 'order_bonus','from' => $from,'schema' => $shema,'note' => "收到订单评价红包¥{$money}"];
|
|
|
+ room\factory_client::instance()->notice_users([$user],room\proto_type::push_notify,$content,$text);
|
|
|
}
|
|
|
|
|
|
private static function inviter_evaluated_text(member_info $user, $level, $goods_name)
|