|
@@ -543,6 +543,7 @@ class push_helper
|
|
|
QueueClient::push('upushSendMsg',$push_param);
|
|
|
}
|
|
|
|
|
|
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
public static function nofity_ugc_pub($follow,$author_id,$special_id,$title)
|
|
|
{
|
|
|
$author = new member_info($author_id);
|
|
@@ -814,6 +815,29 @@ class push_helper
|
|
|
}
|
|
|
|
|
|
//DialogMessage
|
|
|
+
|
|
|
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
+ public static function poor_user_bonus($user, $money, $rate, $type_sn, $fQueue=false)
|
|
|
+ {
|
|
|
+// $url = self::pushurl() . "&op=bonus&type_sn={$type_sn}";
|
|
|
+ $desc = self::money_rate_desc($money,$rate);
|
|
|
+ $text = "您的红包余额不足,好心人紧急为您充值{$desc}红包~";
|
|
|
+
|
|
|
+ $push_param['alias'] = $user;
|
|
|
+ $push_param['title'] = "收到津贴红包";
|
|
|
+ $push_param['text'] = $text;
|
|
|
+
|
|
|
+ $push_param['extra']['go_type'] = 'bonus';
|
|
|
+ $push_param['extra']['title'] = "收到津贴红包";
|
|
|
+ $push_param['extra']['text'] = $text;
|
|
|
+ $push_param['extra']['show_type']= 'pop';
|
|
|
+
|
|
|
+ $push_param['extra']['url'] = url_helper::bonus_open_url($type_sn);
|
|
|
+ $push_param['extra']['image'] = self::admin_avatar();
|
|
|
+
|
|
|
+ self::push($user,$push_param);
|
|
|
+ }
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
public static function first_present($member_id,$fcode)
|
|
|
{
|