|
@@ -834,7 +834,7 @@ class push_helper
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
public static function poor_user_bonus($user, $money, $rate, $type_sn, $fQueue=false)
|
|
|
{
|
|
|
-// $url = self::pushurl() . "&op=bonus&type_sn={$type_sn}";
|
|
|
+// $url = self::pushurl() . "&op=bonus&type_sn={$type_sn}";
|
|
|
$desc = self::money_rate_desc($money,$rate);
|
|
|
$text = "您的红包余额不足,好心人紧急为您充值{$desc}红包~";
|
|
|
|
|
@@ -907,6 +907,25 @@ class push_helper
|
|
|
|
|
|
return $push_param;
|
|
|
}
|
|
|
+
|
|
|
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
+ public static function bargain_bonus($user, $money,$type_sn,$fQueue=false)
|
|
|
+ {
|
|
|
+ $text = "您获得{$money}元的砍价红包,请查收~";
|
|
|
+
|
|
|
+ $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'] = schema_helper::bonus_detail($type_sn);
|
|
|
+ $push_param['extra']['image'] = self::admin_avatar();
|
|
|
+
|
|
|
+ QueueClient::push('upushSendMsg',$push_param);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
class push_event
|